Class AuthorizationChallengeEndpoint
- java.lang.Object
-
- io.jans.as.server.authorize.ws.rs.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 Summary
Constructors Constructor Description AuthorizationChallengeEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Response
requestAuthorizationPost(String clientId, String scope, String acrValues, String deviceSession, String useDeviceSession, String prompt, String state, String nonce, String codeChallenge, String codeChallengeMethod, String authorizationDetails, jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse)
-
-
-
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)
-
-