Class OAuth2SessionAuthenticationProvider

  • All Implemented Interfaces:
    org.springframework.security.authentication.AuthenticationProvider

    public class OAuth2SessionAuthenticationProvider
    extends Object
    implements org.springframework.security.authentication.AuthenticationProvider
    An AuthenticationProvider that authenticates a user using a OAuth2SessionAuthenticationToken.
    Author:
    Nick Crum (ncrum)
    See Also:
    OAuth2SessionAuthenticationFilter
    • Method Detail

      • supports

        public boolean supports​(Class<?> authentication)
        Specified by:
        supports in interface org.springframework.security.authentication.AuthenticationProvider
      • authenticate

        public org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)
        Specified by:
        authenticate in interface org.springframework.security.authentication.AuthenticationProvider
      • createSuccessAuthentication

        protected org.springframework.security.core.Authentication createSuccessAuthentication​(OAuth2UserDetails user,
                                                                                               OAuth2SessionToken sessionToken)