Interface OAuth2AuthenticationContext

All Superinterfaces:
Context
All Known Implementing Classes:
OAuth2AuthorizationCodeRequestAuthenticationContext, OAuth2AuthorizationConsentAuthenticationContext, OidcUserInfoAuthenticationContext

public interface OAuth2AuthenticationContext extends Context
A context that holds an Authentication and (optionally) additional information and is used in an AuthenticationProvider.
Since:
0.2.0
See Also:
  • Method Details

    • getAuthentication

      default <T extends org.springframework.security.core.Authentication> T getAuthentication()
      Returns the Authentication associated to the context.
      Type Parameters:
      T - the type of the Authentication
      Returns:
      the Authentication