mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-08 09:58:56 +08:00
SocialSignOn 升级和优化
This commit is contained in:
parent
7fbee21998
commit
2b899bba17
@ -71,10 +71,38 @@ public class SocialSignOnProviderService{
|
||||
authRequest = new AuthDingTalkRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("gitee")) {
|
||||
authRequest = new AuthGiteeRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("Baidu")) {
|
||||
authRequest = new AuthBaiduRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("Douyin")) {
|
||||
authRequest = new AuthDouyinRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("Eleme")) {
|
||||
authRequest = new AuthElemeRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("Feishu")) {
|
||||
authRequest = new AuthFeishuRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("Github")) {
|
||||
authRequest = new AuthGithubRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("Gitlab")) {
|
||||
authRequest = new AuthGitlabRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("Huawei")) {
|
||||
authRequest = new AuthHuaweiRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("jd")) {
|
||||
authRequest = new AuthJdRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("Meituan")) {
|
||||
authRequest = new AuthMeituanRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("Mi")) {
|
||||
authRequest = new AuthMiRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("Oschina")) {
|
||||
authRequest = new AuthOschinaRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("Taobao")) {
|
||||
authRequest = new AuthTaobaoRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("Toutiao")) {
|
||||
authRequest = new AuthToutiaoRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("WeChatQyQrcode")) {
|
||||
authRequest = new AuthWeChatEnterpriseQrcodeRequest(authConfig);
|
||||
}else if(provider.equalsIgnoreCase("WeChatQyWeb")) {
|
||||
authRequest = new AuthWeChatEnterpriseWebRequest(authConfig);
|
||||
}
|
||||
|
||||
|
||||
|
||||
return authRequest;
|
||||
}
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ config.login.mfa.type=TimeBasedOtpAuthn
|
||||
#enable social sign on
|
||||
config.login.socialsignon=true
|
||||
#social sign on providers
|
||||
config.login.socialsignon.providers=gitee,wechat,sinaweibo,google,qq,dingtalk,microsoft,facebook
|
||||
config.login.socialsignon.providers=gitee,wechatopen,sinaweibo,google,qq,dingtalk,microsoft,facebook
|
||||
#Enable kerberos/SPNEGO
|
||||
config.login.kerberos=true
|
||||
#wsFederation
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user