SocialSignOn 升级和优化

This commit is contained in:
Crystal.Sea 2021-01-12 08:02:09 +08:00
parent 7fbee21998
commit 2b899bba17
2 changed files with 31 additions and 3 deletions

View File

@ -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;
}

View File

@ -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