OAuth2Context
Provides OAuth 2.0 access tokens. When the OAuth2ResourceServerFilter processes a request, it injects the access token into this context.
Properties
The context name is oauth2
, and is accessible at ${contexts.oauth2}
.
The context has the following properties:
"accessToken"
: AccessTokenInfo-
The AccessTokenInfo is built from the following properties:
"info"
: (map<string>, object)-
Raw JSON as a map.
"token"
: string-
Access token identifier issued from the authorization server.
"scopes"
: space separated string-
Scopes associated to this token.
"expiresAt"
: long-
Timestamp (in milliseconds since epoch) when the token expires.