|
|
@@ -24,7 +24,7 @@ public class SocialUtils {
|
|
|
private static final AuthRedisStateCache STATE_CACHE = SpringUtils.getBean(AuthRedisStateCache.class);
|
|
|
|
|
|
public static AuthResponse<AuthUser> loginAuth(String source, String code, String state,
|
|
|
- SocialProperties socialProperties) throws AuthException {
|
|
|
+ SocialProperties socialProperties) throws AuthException {
|
|
|
AuthRequest authRequest = getAuthRequest(source, socialProperties);
|
|
|
AuthCallback callback = new AuthCallback();
|
|
|
callback.setCode(code);
|
|
|
@@ -58,13 +58,13 @@ public class SocialUtils {
|
|
|
case "taobao" -> new AuthTaobaoRequest(builder.build(), STATE_CACHE);
|
|
|
case "douyin" -> new AuthDouyinRequest(builder.build(), STATE_CACHE);
|
|
|
case "linkedin" -> new AuthLinkedinRequest(builder.build(), STATE_CACHE);
|
|
|
- case "microsoft" -> new AuthMicrosoftRequest(builder.build(), STATE_CACHE);
|
|
|
+ case "microsoft" -> new AuthMicrosoftRequest(builder.tenantId(obj.getTenantId()).build(), STATE_CACHE);
|
|
|
case "renren" -> new AuthRenrenRequest(builder.build(), STATE_CACHE);
|
|
|
case "stack_overflow" ->
|
|
|
- new AuthStackOverflowRequest(builder.stackOverflowKey(obj.getStackOverflowKey()).build(), STATE_CACHE);
|
|
|
+ new AuthStackOverflowRequest(builder.stackOverflowKey(obj.getStackOverflowKey()).build(), STATE_CACHE);
|
|
|
case "huawei" -> new AuthHuaweiV3Request(builder.build(), STATE_CACHE);
|
|
|
case "wechat_enterprise" ->
|
|
|
- new AuthWeChatEnterpriseQrcodeV2Request(builder.agentId(obj.getAgentId()).build(), STATE_CACHE);
|
|
|
+ new AuthWeChatEnterpriseQrcodeV2Request(builder.agentId(obj.getAgentId()).build(), STATE_CACHE);
|
|
|
case "gitlab" -> new AuthGitlabRequest(builder.build(), STATE_CACHE);
|
|
|
case "wechat_mp" -> new AuthWeChatMpRequest(builder.build(), STATE_CACHE);
|
|
|
case "aliyun" -> new AuthAliyunRequest(builder.build(), STATE_CACHE);
|