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
AccessTokenInfoare cached for future re-use. - Produced
AccessTokenInfoare stored in theAttributesContextfor downstream handlers/filters.
- Produced
- It performs token validation: checking expiration time and required scopes compliance.
-
ClassesClassDescriptionProvide a
TypeDefinitionProviderfor CacheAccessTokenResolver.ACaffeineCacheAccessTokenResolveris a delegatingAccessTokenResolverthat uses a write-throughCaffeinecache to enable fastAccessTokenInforesolution.Builder ofCaffeineCacheAccessTokenResolver.Creates and initializes anCaffeineCacheAccessTokenResolverin 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.Contextimplementation to hold OAuth2 error details, should a failure occur during OAuth2 scenarios.Validates aRequestthat contains an OAuth 2.0 access token.Provide aTypeDefinitionProviderfor OAuth2ResourceServer.Contextsupporting OAuth2 token exchange scenarios, this manages the resulting exchange token.Filtersupporting OAuth2 token exchange scenarios.Creates and initialises anOAuth2TokenExchangeFilterin a heap environment.ProvideOAuth2TokenExchangeFilter'sTypeDefinition.OAuth2 sharedTypeDefinitions.Provide theRequestFormResourceAccess'sTypeDefinition.Utility class providingResourceAccessconfiguration support.A Scriptable access token resolver.Creates and initializes a scriptable access token resolver in a heap environment.Provide theScriptableAccessTokenResolver'sTypeDefinition.A scriptable resource access.Creates and initializes a scriptable object in a heap environment.Provide theScriptableResourceAccess'sTypeDefinition.AStatelessAccessTokenResolverthat locally resolves and validates stateless access_tokens issued by AM.Creates and initializes a stateless access token resolver in the heap environment.Provide theStatelessAccessTokenResolver'sTypeDefinition.Creates and initializes anTokenIntrospectionAccessTokenResolverin a heap environment.ProvideTokenIntrospectionAccessTokenResolverHeaplet'sTypeDefinition.