Third-party login (OAuth authorization) (How to do Sina OAuth authorization)

Source: Internet
Author: User
Tags oauth

OAuth Authorization: Is a third party can be allowed to contact the user's account password while the third party program authorization.

How to do Sina OAuth authorization:

1, become a Sina developer (join)

Sign in with your Sina Weibo account: open.weibo.com Sina open Platform

2, create application (get ID card)

Click the Create App button on the homepage, fill in the Application name/address/category/platform, etc.

App Name: Weibo for future Weibo tweets

App Address: Click on the Web page that Weibo jumps to

ID: App Key

APP Secret

3. Start Licensing

Access to authorized Requesttoken (access to the landing interface provided by Sina)

Authorization Callback page: The user enters an account password after login to jump to the interface address.

Cancel Authorization Callback page: the interface address that the user jumps to after canceling the login.

Attention:

Error:invaild_request Check URL is correct (space/Chinese)

Error:invaild_client Check if client_id is correct

Error:redirect_uri_mismatch Check that the callback address is exactly the same as it was written on the open platform.

--Get authorized, Requesttoken (let users log in)

If the account is the first time the application authorization will automatically jump to an authorization interface

If the authorization succeeds automatically jumps to the authorization callback page, and follows a code after the authorization callback page URL, the string after this code is the authorized Requesttoken,

> Use Requesttoken in exchange for Accesstoken

Third-party login (OAuth authorization) (How to do Sina OAuth authorization)

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.