Class OpenIdCodeTokenRequestContext

    • Constructor Detail

      • OpenIdCodeTokenRequestContext

        public OpenIdCodeTokenRequestContext​(AuthorizationResponse authorizationResponse,
                                             OauthRouteUrlBuilder oauthRouteUrlBuilder,
                                             SecureEndpoint tokenEndpoint,
                                             OauthClientConfiguration clientConfiguration)
        Parameters:
        authorizationResponse - The authorization response
        oauthRouteUrlBuilder - The oauth route URL builder
        tokenEndpoint - The token endpoint
        clientConfiguration - The client configuration
    • Method Detail

      • getMediaType

        protected static io.micronaut.http.MediaType getMediaType​(OauthClientConfiguration clientConfiguration)
        Resolves the media type for the request body
        Parameters:
        clientConfiguration - The client configuration
        Returns:
        The media type
      • getGrant

        public java.util.Map<java.lang.String,​java.lang.String> getGrant()
        Returns:
        The grant or body of the request
      • getResponseType

        public io.micronaut.core.type.Argument<OpenIdTokenResponse> getResponseType()
        Returns:
        The response argument
      • getErrorResponseType

        public io.micronaut.core.type.Argument<?> getErrorResponseType()
        Returns:
        The error response argument