Home > Mobile >  WeChat web development authorization login this link cannot be accessed
WeChat web development authorization login this link cannot be accessed

Time:09-18

WeChat open platform web login authorization (open), the whole dead!!

According to API, each parameter permissions of what should be ok,


Post code:
 & lt; script> 
Var appid="wxdf6b300ee49243f2";
Var redirect_uri=encodeURIComponent (window. The location. Href);
Var scope="snsapi_login";

Var url="https://open.weixin.qq.com/connect/qrconnect? Appid="+ +" appid & amp; Redirect_uri="+ +" redirect_uri & amp; The payload=code& The scope="+ scope +" & amp; State=1 # wechat_redirect ";
Window. The location. Href=https://bbs.csdn.net/topics/url;
</script>


Below is a link:
https://open.weixin.qq.com/connect/qrconnect? Appid=wxdf6b300ee49243f2 & amp; Redirect_uri=http%3A%2F%2Fwww.choushenbian.com % 2 findex2. Html& The payload=code& The scope=snsapi_login & amp; State=1 # wechat_redirect

Error:



O answer greatly

CodePudding user response:

The scope types like no snsapi_login?
Only snsapi_base and snsapi_userinfo

CodePudding user response:

reference 1st floor sinat_32933119 response:
scope types like no snsapi_login?
Only snsapi_base and snsapi_userinfo


Oh, open open platform of PC login code:

Step 1: request CODE
Third party use of the site application authorization login please pay attention to have access to the corresponding page before the authorization scope (scope=snsapi_login), will be in the PC to open the following link:
https://open.weixin.qq.com/connect/qrconnect? Appid=APPID& Redirect_uri=redirect_uri & amp; The payload=code& The scope=SCOPE& State=STATE# wechat_redirect
If the link can't access "tips", please check whether the parameter is error, such as the redirect_uri domain name with the review fill in the authorization domain name or the scope for snsapi_login,

Now or the link cannot access

CodePudding user response:

I also encountered this problem, can you solve it? Add the QQ: 394288923

CodePudding user response:

The
reference 3 floor nic5588 response:
I also encountered this problem, can you solve it? Add the QQ: 394288923


Haven't solve

CodePudding user response:

No one ever met

CodePudding user response:

The building Lord, how do you solve this problem! Please help qq: 904748592

CodePudding user response:

Whether in the public platform interface is configured in the permissions page authorization security callback domain, the problem is that I have ever had forgot to configure security domain,

CodePudding user response:

Now solved??? To solve the great god

CodePudding user response:

Your connection can access, to explain how to solve

CodePudding user response:


It is ok to revise the authorization callback domain
To such as http://www.baidu.com, don't add behind http://www.baidu.com/weixinlogin/return, etc

CodePudding user response:

I also met this problem before, are going to give up later
Finally settled, I always thought that is my account has a problem, see a lot of people encounter this problem,
Need to pay attention to the two places is good:
1, authorized the callback domain, fill in the domain name can only; (not added before the domain name http://, https://and other agreements)
2, REDIRECT_URI, callback address must be filled in is authorized under the domain of callback address; (don't forget to add http://, https://and other agreement)
Ready, pray,

CodePudding user response:

Web version authorization binding domain, late can modify?

CodePudding user response:

I also encountered the problem of how to solve?????

CodePudding user response:

11 floor positive solutions, thank you very much!

11 references ffsuan response:
I also encountered this problem before, and then intend to give up the
Finally settled, I always thought that is my account has a problem, see a lot of people encounter this problem,
Need to pay attention to the two places is good:
1, authorized the callback domain, fill in the domain name can only; (not added before the domain name http://, https://and other agreements)
2, REDIRECT_URI, callback address must be filled in is authorized under the domain of callback address; (don't forget to add http://, https://and other agreement)
Ready, pray,

CodePudding user response:

Platform finally don't bring "/" callback domain name, that's how I took his pit, example: www.qq.com, and don't fill in www.qq.com/

CodePudding user response:



https://open.weixin.qq.com/connect/qrconnect? Appid=wx4e309d17eb7ce9f5 & amp; Redirect_uri=HTTP % 3 a % 2 f % 2 fvinfol ngrok. Cc % 2 fartsjy % 2 fwxloging & amp; The payload=code& The scope=snsapi_login & amp; State=STATE# wechat_redirect


Have been invalid links, keep how to solve? My callback address is normal, have been using is not normal,

CodePudding user response:

https://open.weixin.qq.com/connect/oauth2/authorize? Appid=wx270f6cb51a79ff08 & amp; Redirect_uri=https%3A%2F%2Fwww.buluoxing.com % 2 findex. PHP % 3 FM % 3 dhome % 26 c % 3 dtaskweb % 26 a % 3 daddtask & amp; The payload=code& The scope=snsapi_userinfo & amp; State=123 # wechat_redirect

Has been unable to visit, please answernullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related