企业微信里的OAuth2登陆问题

企业微信 文章 2021-02-04 16:41 990 0 全屏看文

AI助手支持GPT4.0

企业微信里的OAuth2登陆问题OAuth2 login problem in enterprise WeChat

企业微信里的OAuth2登陆问题

我在自己的企业微信里,自建了一个应用,并且使用OAuth2授权登陆。该登陆在安卓手机端的企业微信端上,能正常获取相关信息,并能正常登陆,但在PC端的客户端里却提示 “请在企业微信客户端打开链接” 。根据别人的经验尝试了各种方法,都总是这样,不知道为什么了。我的授权登陆的URL如下:

https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww04add14898ae9e23&redirect_uri=https%3A%2F%2FXXX.XXX.com%2FWeiXin-Work&response_type=code&scope=snsapi_base&state=123%23wechat_redirect,希望官方能给与解决。谢谢!

I built an application in my own enterprise wechat and log in with oauth2 authorization. The login is on the enterprise wechat end of Android mobile terminal, which can normally obtain relevant information and log in normally. However, in the client of PC terminal, it prompts "please open the link in the enterprise wechat client". According to the experience of others, I tried all kinds of methods, but I don't know why. My authorized login URL is as follows: https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww04add14898ae9e23&redirect_ uri=https%3A%2F%2 FXXX.XXX.com%2FWeiXin -Work&response_ type=code&scope=snsapi_ base&state=123%23wechat_ I hope the government can give us a solution. thank you!

回答:

企业微信运营专员-千夜:

你好,构造的oauth2链接有问题,少了#号,


Jerry:

PC端企业微信是否是最新版本,如果不是,升级到最新版本看下

苏灿:
苏灿:依然
苏灿:

后台管理里面,信任域名都设置正确。

-EOF-

AI助手支持GPT4.0