Qq logon, Sina Weibo logon, interface development

Source: Internet
Author: User
Tags openid
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

 

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.