类 OAuth2ClientCredentialsAuthenticationProvider
java.lang.Object
cn.herodotus.engine.oauth2.authentication.provider.AbstractAuthenticationProvider
cn.herodotus.engine.oauth2.authentication.provider.OAuth2ClientCredentialsAuthenticationProvider
- 所有已实现的接口:
org.springframework.security.authentication.AuthenticationProvider
Description: 扩展的 OAuth2ClientCredentialsAuthenticationProvider
用于支持 客户端权限验证 以及 支持 Refresh_Token- 作者:
- : gengwei.zheng
- Date:
- : 2022/3/31 14:57
-
构造器概要
构造器构造器说明OAuth2ClientCredentialsAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator, cn.herodotus.engine.oauth2.core.definition.service.ClientDetailsService clientDetailsService) Constructs anOAuth2ClientCredentialsAuthenticationProviderusing the provided parameters. -
方法概要
修饰符和类型方法说明org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) boolean从类继承的方法 cn.herodotus.engine.oauth2.authentication.provider.AbstractAuthenticationProvider
createOAuth2AccessToken, createOAuth2AccessTokenAuthenticationToken, createOidcIdToken, creatOAuth2RefreshToken, idTokenAdditionalParameters, validateScopes
-
构造器详细资料
-
OAuth2ClientCredentialsAuthenticationProvider
public OAuth2ClientCredentialsAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator, cn.herodotus.engine.oauth2.core.definition.service.ClientDetailsService clientDetailsService) Constructs anOAuth2ClientCredentialsAuthenticationProviderusing the provided parameters.- 参数:
authorizationService- the authorization servicetokenGenerator- the token generator- 从以下版本开始:
- 0.2.3
-
-
方法详细资料
-
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
-