Package | Description |
---|---|
org.forgerock.openig.filter.oauth2.client |
OAuth 2.0 Client filter implementation.
|
Modifier and Type | Method and Description |
---|---|
Promise<JsonValue,OAuth2ErrorException> |
ClientRegistration.getAccessToken(Context context,
String code,
String callbackUri)
Exchanges the authorization code for an access token and optional ID
token, and then update the session state.
|
Promise<JsonValue,OAuth2ErrorException> |
ClientRegistration.getUserInfo(Context context,
org.forgerock.openig.filter.oauth2.client.OAuth2Session session)
Returns a Promise completed either with the json value of the user info obtained from the authorization
server if the response from the authorization server has a status code of 200, or with an exception, meaning the
access token may have expired.
|
Promise<JsonValue,OAuth2ErrorException> |
ClientRegistration.refreshAccessToken(Context context,
org.forgerock.openig.filter.oauth2.client.OAuth2Session session)
Refreshes the actual access token, making a refresh request to the token
end-point.
|
Constructor and Description |
---|
OAuth2ClientFilter(org.forgerock.openig.filter.oauth2.client.ClientRegistrationRepository registrations,
PerItemEvictionStrategyCache<String,Promise<Map<String,Object>,OAuth2ErrorException>> userInfoCache,
TimeService time,
Handler discoveryAndDynamicRegistrationChain,
Expression<String> clientEndpoint)
Constructs an
OAuth2ClientFilter . |
Copyright 2011-2015 ForgeRock AS.