WeChat API how to get Scope (snsapi_login) permissions, on the PC-side access to scan code login

Source: Internet
Author: User
Tags openid
In the developer documentation are not found, read the relevant article did not say how to get permission, I public number is the service number, has been handed over 300 certification success.
Confession of a friend who asks for knowledge


Reply to discussion (solution)

Don't sink!

Third-party platform ....

Public numbers (public platforms) and open platforms are different. Public number (public platform) access to the scope only includes two kinds: snsapi_base and Snsapi_userinfo, the former is silent access, the user is not aware, the latter requires user confirmation of consent.

But open platform (https://open.weixin.qq.com/) can get snsapi_login this scope. The pit daddy is, public platform certification and open platform certification is independent, if you want to get snsapi_login, also need to re-register open platform, pay 300 dollars certification.

If you just want to implement scan QR code login, in fact, Snsapi_base is enough, because it can get to the user's OpenID, you can later be used to compare with their own database.

If you do not understand, you can refer to this, I have made the API, more simple to use:
Https://wenfan.cn/archives/1866.wen

Public numbers (public platforms) and open platforms are different. Public number (public platform) access to the scope only includes two kinds: snsapi_base and Snsapi_userinfo, the former is silent access, the user is not aware, the latter requires user confirmation of consent.

But open platform (https://open.weixin.qq.com/) can get snsapi_login this scope. The pit daddy is, public platform certification and open platform certification is independent, if you want to get snsapi_login, also need to re-register open platform, pay 300 dollars certification.

If you just want to implement scan QR code login, in fact, Snsapi_base is enough, because it can get to the user's OpenID, you can later be used to compare with their own database.

If you do not understand, you can refer to this, I have made the API, more simple to use:
Https://wenfan.cn/archives/1866.wen


I've found it before, but thank you very much for the answer.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.