Class ExchangeCodeForAccessToken

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action

public class ExchangeCodeForAccessToken extends AbstractHttpOIDCAuthenticationAction<com.nimbusds.oauth2.sdk.TokenResponse>
Action to exchange the authorization code in the authentication response for an OAuth access token which contains an OIDC id_token. Once obtained, adds the token to the AccessTokenResponseContext.
Event:
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX, AuthnEventIds.AUTHN_EXCEPTION
Precondition:
ProfileRequestContext.getSubcontext(AuthenticationContext.class, false) != null
Postcondition:
Add the Access Token Response to the AccessTokenResponseContext.