Class FapiResourceFilterChainHeaplet
java.lang.Object
org.forgerock.openig.heap.GenericHeaplet
org.forgerock.openig.fapi.FapiGenericHeaplet
org.forgerock.openig.fapi.resource.FapiResourceFilterChainHeaplet
- All Implemented Interfaces:
Heaplet
Filters chain that validates requests on resources server to make sure they are compliant with the following FAPI
specifications:
- Financial-grade API Security Profile 1.0 - Part 1: Baseline
- Financial-grade API Security Profile 1.0 - Part 2: Advanced
{
"type": "FapiResourceFilterChain",
"config": {
"clientCertificate" : Runtime Expression [REQUIRED - A runtime expression which will yield the client TLS
certificate and is evaluated on EVERY request. ]
"apiClientService" : ApiClientService [REQUIRED - Reference to an {@link ApiClientService}.]
"clientIdClaim" : String [OPTIONAL - The claim used to retrieve the client_id from the
access_token. Default is 'aud'.]
"allowedGrantType" : String [OPTIONAL - The {@code grant_type} allowed for the request.
Default is 'authorization_code'.]
}
}
{
"name": "fapiResourceFilterChain",
"type": "FapiResourceFilterChain",
"config": {
"clientCertificate": "${pemCertificate(urlDecode(request.headers['ssl-client-cert'][0]))}",
"apiClientService" : "apiClientService",
"clientIdClaim" : "aud",
"allowedGrantType" : "client_credentials"
}
}
-
Field Summary
FieldsFields inherited from class org.forgerock.openig.fapi.FapiGenericHeaplet
CONFIG_FORWARDED_HOST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.forgerock.openig.fapi.FapiGenericHeaplet
createMethods inherited from class org.forgerock.openig.heap.GenericHeaplet
create, destroy, endpointRegistry, evaluatedWithHeapProperties, expression, getConfig, getHeap, getType, initialBindings, meterRegistryHolder, start
-
Field Details
-
NAME
Public name used by resolver.- See Also:
-
-
Constructor Details
-
FapiResourceFilterChainHeaplet
public FapiResourceFilterChainHeaplet()Default constructor forFapiResourceFilterChainHeaplet.
-
-
Method Details
-
createFilterChain
Description copied from class:FapiGenericHeaplet- Specified by:
createFilterChainin classFapiGenericHeaplet- Returns:
ListofFilter- Throws:
HeapException
-