Any idea when use OAuth with QML?



  • A few days ago, i write an application that use Google Docs, which need OAuth. I put the process/logic part in Qt C++ code, and launch a webview in QML when it's need my permission of access. It's works well, but it doesn't a good user experience, for which i must launch a webview.

    The thing i want is: i only need to input my username and password of Google Docs, and use OAuth, i can get the access token without launch the webview. So from then on, i'm looking for the open sources or solutions that can make this happen.

    I just find 2: qOAuth and xAuth. And they're totally different. And i think the xAuth is the one for me, which i can use QML + js in this case. But i still confused. Because i only find twitter support it, but how about Google Docs and facebook.

    Any ideas?





  • [quote author="mario" date="1305786310"]Can this help you?

    "http://www.d-pointer.com/solutions/kqoauth/":http://www.d-pointer.com/solutions/kqoauth/

    [/quote]

    Thanks mario, i see it at Qt Ambassador showcase before. Can you tell me, if this can get access token directly instead of launch a webview? I just know, with xAuth, it can be done in Twitter. But how about kqoauth in Google Docs or Facebook? I can get the token directly?

    Br



  • Oh, I haven't tried the library myself so I have no clue on how to use it.

    Try contacting the authors (there's a contact page on the site). I think they will be glad to answer your question.



  • [quote author="mario" date="1305789703"]Oh, I haven't tried the library myself so I have no clue on how to use it.

    Try contacting the authors (there's a contact page on the site). I think they will be glad to answer your question.
    [/quote]

    Ok, thanks.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.