Class AuthorizationChallengeEndpoint


  • @Path("/authorization_challenge")
    public class AuthorizationChallengeEndpoint
    extends Object
    The authorization challenge endpoint is a new endpoint defined by "OAuth 2.0 for First-Party Native Applications" specification which the native application uses to obtain an authorization code. The endpoint accepts the authorization request parameters defined in [RFC6749] for the authorization endpoint as well as all applicable extensions defined for the authorization endpoint. Some examples of such extensions include Proof Key for Code Exchange (PKCE) [RFC7636], Resource Indicators [RFC8707], and OpenID Connect [OpenID]. It is important to note that some extension parameters have meaning in a web context but don't have meaning in a native mechanism (e.g. response_mode=query).
    Author:
    Yuriy Z
    • Constructor Detail

      • AuthorizationChallengeEndpoint

        public AuthorizationChallengeEndpoint()
    • Method Detail

      • requestAuthorizationPost

        @POST
        @Produces("application/json")
        public jakarta.ws.rs.core.Response requestAuthorizationPost​(@FormParam("client_id")
                                                                    String clientId,
                                                                    @FormParam("scope")
                                                                    String scope,
                                                                    @FormParam("acr_values")
                                                                    String acrValues,
                                                                    @FormParam("device_session")
                                                                    String deviceSession,
                                                                    @FormParam("use_device_session")
                                                                    String useDeviceSession,
                                                                    @FormParam("prompt")
                                                                    String prompt,
                                                                    @FormParam("state")
                                                                    String state,
                                                                    @FormParam("nonce")
                                                                    String nonce,
                                                                    @FormParam("code_challenge")
                                                                    String codeChallenge,
                                                                    @FormParam("code_challenge_method")
                                                                    String codeChallengeMethod,
                                                                    @FormParam("authorization_details")
                                                                    String authorizationDetails,
                                                                    @Context
                                                                    jakarta.servlet.http.HttpServletRequest httpRequest,
                                                                    @Context
                                                                    jakarta.servlet.http.HttpServletResponse httpResponse)