Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Any idea when use OAuth with QML?

Any idea when use OAuth with QML?

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 4.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chuck Gao
    wrote on last edited by
    #1

    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?

    Chuck

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mario
      wrote on last edited by
      #2

      Can this help you?

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

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Chuck Gao
        wrote on last edited by
        #3

        [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

        Chuck

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mario
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Chuck Gao
            wrote on last edited by
            #5

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

            Chuck

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved