How does the api obtain the scope (snsapi_login) permission? the logon via scan code on the PC side is not found in the Developer Documentation. I have read the relevant articles and did not say how to obtain the permission. my public account is the service number, you have already handed in the 300 certification.
A friend who knows what to do
Reply to discussion (solution)
Don't sink!
On a third-party platform ....
Public Accounts (public platforms) and open platforms are two different things. The scope obtained by the public account (public platform) only includes two types: snsapi_base and snsapi_userinfo. The former is acquired silently and imperceptible to users. The latter requires user confirmation and consent.
But open platforms (https://open.weixin.qq.com/) can get scope like snsapi_login. If you want to obtain snsapi_login, you must register the open platform and pay 300 yuan for the authentication.
If you just want to scan the QR code to log on, snsapi_base is enough because it can get the user's openid and you can use it to compare it with your own database.
If you still don't understand it, you can refer to this and I have made it an API, which is easier to use:
Https://wenfan.cn/archives/1866.wen
Public Accounts (public platforms) and open platforms are two different things. The scope obtained by the public account (public platform) only includes two types: snsapi_base and snsapi_userinfo. The former is acquired silently and imperceptible to users. The latter requires user confirmation and consent.
But open platforms (https://open.weixin.qq.com/) can get scope like snsapi_login. If you want to obtain snsapi_login, you must register the open platform and pay 300 yuan for the authentication.
If you just want to scan the QR code to log on, snsapi_base is enough because it can get the user's openid and you can use it to compare it with your own database.
If you still don't understand it, you can refer to this and I have made it an API, which is easier to use:
Https://wenfan.cn/archives/1866.wen
I found it before, but thank you very much for your answer.