Class FapiAuthorizeRequestValidationFilter
java.lang.Object
org.forgerock.openig.fapi.authorization.AbstractFapiAuthorizeRequestValidationFilter
org.forgerock.openig.fapi.authorization.authorize.validation.FapiAuthorizeRequestValidationFilter
- All Implemented Interfaces:
Filter
public class FapiAuthorizeRequestValidationFilter
extends AbstractFapiAuthorizeRequestValidationFilter
Validates that a request made to the OAuth2.0
/authorize endpoint is FAPI compliant.
For more details on /authorize requests see:
OAuth 2.0 spec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckEndpointSpecificClaims(JwtClaimsSet requestJwtClaimSet) Check specific claim combinations to the request type.protected AuthorizationRequestcreateAuthorizationRequest(Request request) Create a specificAuthorizationRequestfor the endpoint.Filters the request and/or response of an exchange.Methods inherited from class org.forgerock.openig.fapi.authorization.AbstractFapiAuthorizeRequestValidationFilter
errorResponse
-
Constructor Details
-
FapiAuthorizeRequestValidationFilter
public FapiAuthorizeRequestValidationFilter()Default constructor forFapiAuthorizeRequestValidationFilter.
-
-
Method Details
-
filter
public Promise<Response,NeverThrowsException> filter(Context context, Request request, Handler next) Description copied from interface:FilterFilters the request and/or response of an exchange. To pass the request to the next filter or handler in the chain, the filter callsnext.handle(context, request).This method may elect not to pass the request to the next filter or handler, and instead handle the request itself. It can achieve this by merely avoiding a call to
next.handle(context, request)and creating its own response object. The filter is also at liberty to replace a response with another of its own by intercepting the response returned by the next handler.- Specified by:
filterin interfaceFilter- Overrides:
filterin classAbstractFapiAuthorizeRequestValidationFilter- Parameters:
context- The request context.request- The request.next- The next filter or handler in the chain to handle the request.- Returns:
- A
Promiserepresenting the response to be returned to the client.
-
createAuthorizationRequest
Description copied from class:AbstractFapiAuthorizeRequestValidationFilterCreate a specificAuthorizationRequestfor the endpoint.- Specified by:
createAuthorizationRequestin classAbstractFapiAuthorizeRequestValidationFilter- Parameters:
request- the request to use- Returns:
- the
AuthorizationRequestcreated
-
checkEndpointSpecificClaims
Description copied from class:AbstractFapiAuthorizeRequestValidationFilterCheck specific claim combinations to the request type.- Specified by:
checkEndpointSpecificClaimsin classAbstractFapiAuthorizeRequestValidationFilter- Parameters:
requestJwtClaimSet- - the claims found in the JAR object of the request
-