1: Oauth2.0 authorization process screenshots
The official process is as follows:
Step 1: The user consent, access code
Step 2: The code page in exchange for authorization access_token
Step 3: Refresh access_token (if needed)
4 Fourth step: pulling the user information (as required scope snsapi_userinfo)
2: to authorize direct users to pages
3: Before landing authorization or concern over the number of public page as follows:
4: customer needs micro-channel open end, or given as follows:
5: Get to authorized information is as follows:
6: the main code screenshot:
Very simple! Finally, here is a simple test to obtain the amount of user information may be processed according to their own business
(Note that I use here are within the network penetration technology, common are: NATAPP, frp, ngrok, peanut shells, zero escape NAS partner)!
7: micro-channel official authorization documentation Web URL address:
https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html#4