feat(平台管理):新增小程序的管理,多个小程序登录unionId管理
This commit is contained in:
+5
-2
@@ -20,19 +20,22 @@ public class TencentAuthenticationToken extends BaseAuthenticationToken {
|
||||
private final Object principal;
|
||||
private final String encryptedData;
|
||||
private final String iv;
|
||||
private final String appId;
|
||||
|
||||
public TencentAuthenticationToken(String code, String encryptedData, String iv) {
|
||||
public TencentAuthenticationToken(String code, String encryptedData, String iv, String appId) {
|
||||
super(GRANT_TYPE);
|
||||
this.principal = code;
|
||||
this.encryptedData = encryptedData;
|
||||
this.iv = iv;
|
||||
this.appId = appId;
|
||||
super.setAuthenticated(true);
|
||||
}
|
||||
|
||||
public TencentAuthenticationToken(UserDetails user, Collection<? extends GrantedAuthority> authorities, String encryptedData, String iv) {
|
||||
public TencentAuthenticationToken(UserDetails user, Collection<? extends GrantedAuthority> authorities, String encryptedData, String iv, String appId) {
|
||||
super(authorities);
|
||||
this.principal = user;
|
||||
this.encryptedData = encryptedData;
|
||||
this.iv = iv;
|
||||
this.appId = appId;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user