mirror of https://gitee.com/topiam/eiam
修复微信登录配置,修复邮件登录问题
parent
49aad0ee6f
commit
1e3611681f
|
@ -21,6 +21,7 @@ import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
|
import cn.topiam.employee.authentication.wechat.WeChatIdpScanCodeConfig;
|
||||||
import org.apache.commons.lang3.RandomStringUtils;
|
import org.apache.commons.lang3.RandomStringUtils;
|
||||||
import org.mapstruct.Mapper;
|
import org.mapstruct.Mapper;
|
||||||
import org.mapstruct.Mapping;
|
import org.mapstruct.Mapping;
|
||||||
|
@ -246,7 +247,7 @@ public interface IdentityProviderConverter {
|
||||||
IdentityProviderConfig identityProviderConfig;
|
IdentityProviderConfig identityProviderConfig;
|
||||||
//微信扫码
|
//微信扫码
|
||||||
if (type.equals(WECHAT_QR.value())) {
|
if (type.equals(WECHAT_QR.value())) {
|
||||||
identityProviderConfig = config.to(GiteeIdpOAuth2Config.class);
|
identityProviderConfig = config.to(WeChatIdpScanCodeConfig.class);
|
||||||
//钉钉扫码
|
//钉钉扫码
|
||||||
} else if (type.equals(DINGTALK_QR.value())) {
|
} else if (type.equals(DINGTALK_QR.value())) {
|
||||||
identityProviderConfig = config.to(DingTalkIdpScanCodeConfig.class);
|
identityProviderConfig = config.to(DingTalkIdpScanCodeConfig.class);
|
||||||
|
@ -297,6 +298,9 @@ public interface IdentityProviderConverter {
|
||||||
if (FEISHU_OAUTH.value().equals(type)) {
|
if (FEISHU_OAUTH.value().equals(type)) {
|
||||||
return FEISHU_OAUTH;
|
return FEISHU_OAUTH;
|
||||||
}
|
}
|
||||||
|
if (MAIL.value().equals(type)) {
|
||||||
|
return MAIL;
|
||||||
|
}
|
||||||
if (DINGTALK_OAUTH.value().equals(type)) {
|
if (DINGTALK_OAUTH.value().equals(type)) {
|
||||||
return DINGTALK_OAUTH;
|
return DINGTALK_OAUTH;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue