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)