public class OAuth2WeChatMiniProgramAuthenticationToken
extends org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken
用于 OAuth 2.0 授权代码授予的
{@link Authentication} 实现。,
用于 OAuth 2.0 刷新令牌授予的 {@link Authentication}
实现。,
用于 OAuth 2.0
客户端凭据授予的{@link Authentication} 实现。,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static org.springframework.security.oauth2.core.AuthorizationGrantType |
WECHAT_MINIPROGRAM
授权类型:微信小程序
|
| Constructor and Description |
|---|
OAuth2WeChatMiniProgramAuthenticationToken(org.springframework.security.core.Authentication clientPrincipal,
Map<String,Object> additionalParameters,
String appid,
String code,
String scope)
子类构造函数。
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAppid()
AppID(小程序ID)
|
String |
getCode() |
String |
getScope() |
getAdditionalParameters, getCredentials, getGrantType, getPrincipalequals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringpublic static final org.springframework.security.oauth2.core.AuthorizationGrantType WECHAT_MINIPROGRAM
public OAuth2WeChatMiniProgramAuthenticationToken(org.springframework.security.core.Authentication clientPrincipal,
Map<String,Object> additionalParameters,
String appid,
String code,
String scope)
clientPrincipal - 经过身份验证的客户端主体additionalParameters - 附加参数appid - AppID(小程序ID)code - @see 登录
- code2Sessionscope - OAuth2ParameterNames.SCOPEpublic String getAppid()
public String getCode()
public String getScope()
OAuth2ParameterNames.SCOPECopyright © 2022 徐晓伟工作室. All rights reserved.