Interface AuthorizationRequest

    • Field Detail

      • PARAMETER_RESPONSE_TYPE

        static final java.lang.String PARAMETER_RESPONSE_TYPE
        See Also:
        Constant Field Values
      • PARAMETER_REDIRECT_URI

        static final java.lang.String PARAMETER_REDIRECT_URI
        See Also:
        Constant Field Values
      • PARAMETER_PKCE_CODE_CHALLENGE

        static final java.lang.String PARAMETER_PKCE_CODE_CHALLENGE
        See Also:
        Constant Field Values
      • PARAMETER_PKCE_CODE_CHALLENGE_METHOD

        static final java.lang.String PARAMETER_PKCE_CODE_CHALLENGE_METHOD
        See Also:
        Constant Field Values
    • Method Detail

      • getScopes

        @NonNull
        java.util.List<java.lang.String> getScopes()
        Returns:
        OAuth 2.0 scopes.
      • getClientId

        @NonNull
        java.lang.String getClientId()
        Returns:
        OAuth 2.0 Client Identifier valid at the Authorization Server.
      • getState

        java.util.Optional<java.lang.String> getState​(io.micronaut.http.MutableHttpResponse<?> response)
        Parameters:
        response - authorization redirect response
        Returns:
        Opaque value used to maintain state between the request and the callback.
      • getResponseType

        @NonNull
        java.lang.String getResponseType()
        Returns:
        OAuth 2.0 Response Type value that determines the authorization processing flow to be used, including what parameters are returned from the endpoints used.
      • getRedirectUri

        java.util.Optional<java.lang.String> getRedirectUri()
        Returns:
        Redirection URI to which the response will be sent.
      • getPkceChallenge

        @NonNull
        default java.util.Optional<PkceChallenge> getPkceChallenge​(@NonNull
                                                                   io.micronaut.http.MutableHttpResponse<?> response)
        Parameters:
        response - HTTP Response
        Returns:
        The PCKE challenge
        Since:
        3.9.0
        See Also:
        RFC 7636