JavaScript-what you need to log in with a third-party account

Source: Internet
Author: User
Rt

Similar to the use of QQ or micro-blog account Login
What are the front and back end knowledge to implement such a function

Reply content:

Rt

Similar to the use of QQ or micro-blog account Login
What are the front and back end knowledge to implement such a function

I do not know whether it is my ability to understand the problem, or other, can not understand your problem.
Do you want to ask how to use a third-party account to log in as you know it?

Third-party logins generally rely on OAuth2 this protocol. Then understanding the agreement itself is the most important thing.

There is almost nothing but OAuth2 itself ... The front end requires little or no special knowledge, and the backend can communicate with other servers using curl and so on.

Just use the words, do not need other knowledge, look at the API and demo, you can heap a.

General use of third-party landing, are required service-side control, the basic use of OAUTH2 protocol.
is to submit the specified data to the specified authorized address via the server,
There are usually get and post two kinds:
Get, directly can be accessed through a URL, a tag can be resolved

But more is through the Post method to the designated authorized address to submit data, PHP use curl, and others can self-examination.
By submitting data to a given authorized address, a token value is obtained so that the personal information of the authorized user can be accessed and the user's personal information is stored in the user database.

  • 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.