public class OAuth2WeChatMiniProgramAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
AnonymousAuthenticationProvider,
JwtClientAssertionAuthenticationProvider,
ClientSecretAuthenticationProvider,
PublicClientAuthenticationProvider,
OAuth2AuthorizationCodeRequestAuthenticationProvider,
OAuth2AuthorizationCodeAuthenticationProvider,
OAuth2RefreshTokenAuthenticationProvider,
OAuth2ClientCredentialsAuthenticationProvider,
OAuth2TokenIntrospectionAuthenticationProvider,
OAuth2TokenRevocationAuthenticationProvider,
OidcUserInfoAuthenticationProvider| Modifier and Type | Field and Description |
|---|---|
String |
JS_CODE2_SESSION_URL
auth.code2Session
|
| Constructor and Description |
|---|
OAuth2WeChatMiniProgramAuthenticationProvider(org.springframework.security.config.annotation.web.builders.HttpSecurity builder) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
void |
setAuthorizationService(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService) |
void |
setTokenGenerator(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator) |
void |
setWechatMiniProgramService(WeChatMiniProgramService wechatMiniProgramService) |
boolean |
supports(Class<?> authentication) |
public final String JS_CODE2_SESSION_URL
public OAuth2WeChatMiniProgramAuthenticationProvider(org.springframework.security.config.annotation.web.builders.HttpSecurity builder)
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
authenticate in interface org.springframework.security.authentication.AuthenticationProviderorg.springframework.security.core.AuthenticationExceptionpublic boolean supports(Class<?> authentication)
supports in interface org.springframework.security.authentication.AuthenticationProviderpublic void setAuthorizationService(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService)
public void setTokenGenerator(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator)
public void setWechatMiniProgramService(WeChatMiniProgramService wechatMiniProgramService)
Copyright © 2022 徐晓伟工作室. All rights reserved.