Skip to content

request help:集成新版企微V2登陆提示Unidentified platform [WECHAT_ENTERPRISE_V2] #248

@banukadk

Description

@banukadk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions