Class OAuth2SocialCredentialsAuthenticationProvider

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

public class OAuth2SocialCredentialsAuthenticationProvider extends AbstractUserDetailsAuthenticationProvider

Description: 社会化认证 Provider

Author:
: gengwei.zheng
Date:
: 2022/3/31 14:54
  • Constructor Details

    • OAuth2SocialCredentialsAuthenticationProvider

      public OAuth2SocialCredentialsAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, OAuth2AuthenticationProperties complianceProperties)
  • Method Details

    • additionalAuthenticationChecks

      protected void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails, Map<String,Object> additionalParameters) throws org.springframework.security.core.AuthenticationException
      Specified by:
      additionalAuthenticationChecks in class AbstractUserDetailsAuthenticationProvider
      Throws:
      org.springframework.security.core.AuthenticationException
    • retrieveUser

      protected org.springframework.security.core.userdetails.UserDetails retrieveUser(Map<String,Object> additionalParameters) throws org.springframework.security.core.AuthenticationException
      Specified by:
      retrieveUser in class AbstractUserDetailsAuthenticationProvider
      Throws:
      org.springframework.security.core.AuthenticationException
    • authenticate

      public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
      Throws:
      org.springframework.security.core.AuthenticationException
    • supports

      public boolean supports(Class<?> authentication)
    • setSessionRegistry

      public void setSessionRegistry(org.springframework.security.core.session.SessionRegistry sessionRegistry)
      Sets the SessionRegistry used to track OpenID Connect sessions.
      Parameters:
      sessionRegistry - the SessionRegistry used to track OpenID Connect sessions
      Since:
      1.1.1