-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Issue description
Environment
- JustAuth version(e.g.
1.16.7):
[ERROR] - Failed to login with oauth authorization. me.zhyd.oauth.exception.AuthException: Unidentified platform [WECHAT_ENTERPRISE_V2] at
我的配置代码
public AuthRequest createAuthRequest(String source, boolean isH5) {
// 从数据库获取配置
SysJustAuthConfig platformConfig = justAuthConfigService.selectConfigByPlatform(source);
if (!isConfigValid(platformConfig)) {
return null;
}
AuthConfig config = getAuthConfig(source, isH5);
if (config == null) {
return null;
}
switch (source) {
case "github":
return new AuthGithubRequest(config);
case "gitee":
return new AuthGiteeRequest(config);
case "qq":
return new AuthQqRequest(config);
case "wechat_open":
return new AuthWeChatOpenRequest(config);
case "dingtalk":
return new AuthDingTalkV2Request(config);
case "weibo":
return new AuthWeiboRequest(config);
case "wechat_enterprise":
// 企业微信扫码登录 - 使用V2版本
return new AuthWeChatEnterpriseQrcodeV2Request(config);
default:
return null;
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested