public interface WeChatMiniProgramService
RegisteredClientRepository,
InMemoryRegisteredClientRepository,
JdbcRegisteredClientRepository| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.authentication.AbstractAuthenticationToken |
authenticationToken(org.springframework.security.core.Authentication clientPrincipal,
Map<String,Object> additionalParameters,
Object details,
String appid,
String code,
String openid,
Object credentials,
String unionid,
String sessionKey)
认证信息
|
Code2SessionResponse |
getCode2SessionResponse(String appid,
String code,
String jsCode2SessionUrl)
根据 AppID(小程序ID)、code、jsCode2SessionUrl 获取Token
|
org.springframework.security.authentication.AbstractAuthenticationToken authenticationToken(org.springframework.security.core.Authentication clientPrincipal,
Map<String,Object> additionalParameters,
Object details,
String appid,
String code,
String openid,
Object credentials,
String unionid,
String sessionKey)
clientPrincipal - 经过身份验证的客户端主体additionalParameters - 附加参数details - 登录信息appid - AppID(小程序ID)code - @see 登录
- code2Sessionopenid - 用户唯一标识,登录
- code2Sessioncredentials - 证书unionid - 用户在开放平台的唯一标识符,若当前小程序已绑定到微信开放平台帐号下会返回,详见 UnionID
机制说明。sessionKey - 会话密钥Code2SessionResponse getCode2SessionResponse(String appid, String code, String jsCode2SessionUrl)
appid - AppID(小程序ID)code - 开放接口
- 登录 - wx.login,登录
- code2SessionjsCode2SessionUrl - 登录
- code2SessionCopyright © 2022 徐晓伟工作室. All rights reserved.