Package org.forgerock.http.oauth2
This package provides APIs for OAuth 2.0 services implementations.
Included in the package is an OAuth 2.0 token validation filter that acts as an OAuth 2 Resource Server.
- It ensures that there is an existing bearer access token in the request's headers.
- It resolves the token against an Authorization Server (using a
AccessTokenResolver
implementation). - It performs the token validation: checking expiration time and required scopes compliance.
-
Interface Summary Interface Description AccessTokenResolver Resolves a given token against a dedicated OAuth2 Identity Provider (OpenAM, Google, Facebook, ...).ResourceAccess AResourceAccess
encapsulates the logic of required scope selection. -
Class Summary Class Description AccessTokenInfo Represents an OAuth2 Access Token.OAuth2 OAuth2 utility class.OAuth2Context AnOAuth2Context
could be used to store and retrieve anAccessTokenInfo
.OAuth2Error Describes an error which occurred during an OAuth 2.0 authorization request or when performing an authorized request.ResourceServerFilter Validates aRequest
that contains an OAuth 2.0 access token. -
Exception Summary Exception Description AccessTokenException Represents an exception whilst retrieving an OAuth2 access token.