Package org.forgerock.openig.filter.oauth2
package org.forgerock.openig.filter.oauth2
This package contains the OAuth2 Token validation filter that acts as an OAuth 2 Resource Server.
- It ensure that there is an existing bearer access token in the request's headers.
- It resolves it against a given Authorization Server (that must provide a token-info
endpoint).
- Produced
AccessTokenInfo
are cached for future re-use. - Produced
AccessTokenInfo
are stored in theAttributesContext
for downstream handlers/filters.
- Produced
- It performs token validation: checking expiration time and required scopes compliance.
-
ClassesClassDescriptionProvide a
TypeDefinitionProvider
for CacheAccessTokenResolver.ACaffeineCacheAccessTokenResolver
is a delegatingAccessTokenResolver
that uses a write-throughCaffeine
cache to enable fastAccessTokenInfo
resolution.Builder ofCaffeineCacheAccessTokenResolver
.Creates and initializes anCaffeineCacheAccessTokenResolver
in the heap environment.Register all the aliases supported by the openig-oauth2 module.Declares the Heap objects needed by this module in the main IG heap.Context
implementation to hold OAuth2 error details, should a failure occur during OAuth2 scenarios.Validates aRequest
that contains an OAuth 2.0 access token.Provide aTypeDefinitionProvider
for OAuth2ResourceServer.Context
supporting OAuth2 token exchange scenarios, this manages the resulting exchange token.Filter
supporting OAuth2 token exchange scenarios.Creates and initialises anOAuth2TokenExchangeFilter
in a heap environment.Provide theRequestFormResourceAccess
'sTypeDefinition
.Utility class providingResourceAccess
configuration support.Class aggregatingResourceAccess
TypeDefinition
s.A Scriptable access token resolver.Creates and initializes a scriptable access token resolver in a heap environment.A scriptable resource access.Creates and initializes a scriptable object in a heap environment.AStatelessAccessTokenResolver
that locally resolves and validates stateless access_tokens issued by AM.Creates and initializes a stateless access token resolver in the heap environment.Creates and initializes anTokenIntrospectionAccessTokenResolver
in a heap environment.ProvideTokenIntrospectionAccessTokenResolverHeaplet
'sTypeDefinition
.