Package net.ltgt.oidc.servlet
Interface OAuthTokensHandler
- All Known Implementing Classes:
RevokingOAuthTokensHandler
public interface OAuthTokensHandler
Handles OAuth tokens acquired at authentication time (by the
CallbackServlet) once they're no longer needed.
Tokens can be revoked immediately (default behavior if no specific OAuthTokensHandler
has been configured, through a RevokingOAuthTokensHandler), or stored in the session for
later use. In that case, it is your responsibility to revoke them, e.g. when the session is
destroyed.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidtokensAcquired(AccessTokenResponse tokenResponse, HttpSession session) Called by theCallbackServletbefore it forgets about the tokens.
-
Field Details
-
CONTEXT_ATTRIBUTE_NAME
-
-
Method Details
-
tokensAcquired
Called by theCallbackServletbefore it forgets about the tokens.- Parameters:
tokenResponse- The token response, containing the OAuth tokens and possibly some custom parameters
-