Class AuthorizationChallengeEndpoint

java.lang.Object
io.jans.as.server.authorize.ws.rs.AuthorizationChallengeEndpoint

@Path("/authorize-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 Details

    • AuthorizationChallengeEndpoint

      public AuthorizationChallengeEndpoint()
  • Method Details

    • 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("auth_session") String authorizationChallengeSession, @FormParam("use_auth_session") String useAuthorizationChallengeSession, @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, @FormParam("logout_status_jwt") String shouldReturnLogoutStatusJwt, @Context jakarta.servlet.http.HttpServletRequest httpRequest, @Context jakarta.servlet.http.HttpServletResponse httpResponse)