Build qml + JS oauth verification process based on Xauth

Source: Internet
Author: User
Tags oauth

This is a memo, because there are still many details that cannot be improved.

 

I wonder if you have such experience: in the case of developing third-party applications and using oauth verification, basically all web applications require launch webview and manual authorization and approval by users. In this case, WebKit must be enabled.

 

Xauth provides a streamlined oauth verification process. In fact, it still uses oauth verification, but it can save the process of request token and authorize token and directly use username + password to apply for access token, you do not need to start the web browser (saving WebKit overhead ).

 

Xauth provides a Javascript script that you can use with qml.

 

However, Xauth has the following restrictions:

1. Currently, only a few applications support Xauth: Twitter, Sina Weibo, and Netease Weibo, and cannot be applied to other web applications.

2. Authorization is generally required

 

Http://xauth.org/

Http://code.google.com/p/xauth/

Http://dev.twitter.com/pages/xauth

Http://open.t.sina.com.cn/wiki/index.php/XAuth

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.