Added the linux command online Chinese manual, qq logon and Sina Weibo logon. auth2.0 is used for authentication, and jsapi and phpapi are used in combination. I personally think that this method combines security and humanization. I have written a blog about the application before. for details, refer to qq logon and problems encountered during the application process of Sina Weibo logon interface.
Added the linux command online Chinese manual, qq logon and Sina Weibo logon. auth2.0 was used for authentication and combined with js api and php api. I personally think that this method combines security and humanization. I have written a blog about the application before. For more information, see:Problems encountered during the application for qq logon and Sina Weibo logon interfaces
1. the advantage of js APIs is to log on via a pop-up window. do not skip or skip. it is annoying that all the data is post-acquired. you can view the returned data through the browser's developer tools, in this way, it is insecure to save the data returned by the api. you can directly write code in the browser to simulate the submission.
2. the disadvantages of the php api are page jump, which makes people feel uncomfortable. However, data is much safer to store and can be reviewed by a third party at any time.
If the two are combined, data can also be verified without jumping.
1. log on to qq
Qq login, js api login, and get personal data, asynchronously submitted to the php program, php program, for submitted data, third-party verification, that is, according to the transmitted parameters, when you request a php api, you can obtain the information and enter the local database. Qq's open id is the unique identifier of qq. the main code is as follows.
1. js code