类 OAuth2SocialCredentialsAuthenticationProvider
java.lang.Object
cn.herodotus.engine.oauth2.authentication.provider.AbstractAuthenticationProvider
cn.herodotus.engine.oauth2.authentication.provider.AbstractUserDetailsAuthenticationProvider
cn.herodotus.engine.oauth2.authentication.provider.OAuth2SocialCredentialsAuthenticationProvider
- 所有已实现的接口:
org.springframework.security.authentication.AuthenticationProvider
public class OAuth2SocialCredentialsAuthenticationProvider
extends AbstractUserDetailsAuthenticationProvider
Description: 社会化认证 Provider
- 作者:
- : gengwei.zheng
- Date:
- : 2022/3/31 14:54
-
构造器概要
构造器构造器说明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) -
方法概要
修饰符和类型方法说明protected voidadditionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails, Map<String, Object> additionalParameters) org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) protected org.springframework.security.core.userdetails.UserDetailsretrieveUser(Map<String, Object> additionalParameters) voidsetSessionRegistry(org.springframework.security.core.session.SessionRegistry sessionRegistry) Sets theSessionRegistryused to track OpenID Connect sessions.boolean从类继承的方法 cn.herodotus.engine.oauth2.authentication.provider.AbstractUserDetailsAuthenticationProvider
getPasswordEncoder, getUserDetailsService, getUsernamePasswordAuthentication, setPasswordEncoder从类继承的方法 cn.herodotus.engine.oauth2.authentication.provider.AbstractAuthenticationProvider
createOAuth2AccessToken, createOAuth2AccessTokenAuthenticationToken, createOidcIdToken, creatOAuth2RefreshToken, idTokenAdditionalParameters, validateScopes
-
构造器详细资料
-
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)
-
-
方法详细资料
-
additionalAuthenticationChecks
protected void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails, Map<String, Object> additionalParameters) throws org.springframework.security.core.AuthenticationException- 指定者:
additionalAuthenticationChecks在类中AbstractUserDetailsAuthenticationProvider- 抛出:
org.springframework.security.core.AuthenticationException
-
retrieveUser
protected org.springframework.security.core.userdetails.UserDetails retrieveUser(Map<String, Object> additionalParameters) throws org.springframework.security.core.AuthenticationException- 指定者:
retrieveUser在类中AbstractUserDetailsAuthenticationProvider- 抛出:
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 - 抛出:
org.springframework.security.core.AuthenticationException
-
supports
-
setSessionRegistry
public void setSessionRegistry(org.springframework.security.core.session.SessionRegistry sessionRegistry) Sets theSessionRegistryused to track OpenID Connect sessions.- 参数:
sessionRegistry- theSessionRegistryused to track OpenID Connect sessions- 从以下版本开始:
- 1.1.1
-