OAuth2.0 Page Authorization PHP Example
1, configure the authorization callback page domain name, such as Www.aaa.com
?
2. Third party Web page of The Sims, fn_system.php
?
3, when visiting the third party webpage, if there is no session information in the check session, jump to the landing page, fn_wx_login.php
?
4, in the landing page assembly AppID, bounce URL and other information, and then jump to the user authorization page.
?
5, on the user authorization page, if the user selected "Consent authorization", then back to the third party Web page to jump back to the address, will be accompanied by the code parameter.
?
6, the third-party web page of the fallback URL, first get code from the request, and then according to code further in exchange for OpenID and Access_token, then can be based on the OpenID and Access_token invoke the relevant interface to query user information.
?