Class ParEndpoint
java.lang.Object
org.keycloak.protocol.oidc.par.endpoints.AbstractParEndpoint
org.keycloak.protocol.oidc.par.endpoints.ParEndpoint
Pushed Authorization Request endpoint
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
flattenDecodedFormParametersToParamsMap
(jakarta.ws.rs.core.MultivaluedMap<String, String> decodedFormParameters, Map<String, String> params) Flattens the given decodedFormParameters MultivaluedMap to a plain Map.static jakarta.ws.rs.core.UriBuilder
parUrl
(jakarta.ws.rs.core.UriBuilder baseUriBuilder) jakarta.ws.rs.core.Response
request()
Methods inherited from class org.keycloak.protocol.oidc.par.endpoints.AbstractParEndpoint
authorizeClient, checkRealm, checkSsl, getHash, throwErrorResponseException
-
Field Details
-
PAR_CREATED_TIME
- See Also:
-
REQUEST_URI_PREFIX_LENGTH
public static final int REQUEST_URI_PREFIX_LENGTH
-
-
Constructor Details
-
ParEndpoint
-
-
Method Details
-
parUrl
public static jakarta.ws.rs.core.UriBuilder parUrl(jakarta.ws.rs.core.UriBuilder baseUriBuilder) -
request
@Path("/") @POST @Consumes("application/x-www-form-urlencoded") @Produces("application/json") public jakarta.ws.rs.core.Response request() -
flattenDecodedFormParametersToParamsMap
public static void flattenDecodedFormParametersToParamsMap(jakarta.ws.rs.core.MultivaluedMap<String, String> decodedFormParameters, Map<String, String> params) Flattens the given decodedFormParameters MultivaluedMap to a plain Map. Rationale: The SingleUseObjectProvider used as store for PARs only accepts Map so that MultivaluedMap needs to be converted to Map.- Parameters:
decodedFormParameters
- form parameters sent in request bodyparams
- target parameter Map
-