Results 1 to 2 of 2

Thread: QOAuth - a Qt OAuth library

  1. #1
    Join Date
    Feb 2009
    Location
    ŁÃ³dź, Poland
    Posts
    20
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QOAuth - a Qt OAuth library

    QOAuth is an attempt to support interaction with OAuth-powered network services in a Qt way, i.e. simply, clearly and efficiently. It gives the application developer no more than 4 methods, namely:

    • requestToken() – to obtain an unauthorized Request Token,
    • accessToken() – to exchange Request Token for the Access Token,
    • createParametersString() – to construct a request according to OAuth authorization scheme,
    • inlineParemeters() - to construct a query string basing on given parameters (provided only for convenience).


    First two methods serve application authorization purposes, whilst the third one is used for accessing Protected Resources. The complete documentation is available locally as well as online:

    http://files.ayoy.net/qoauth/doc

    QOAuth internally makes use of QCA (Qt Cryptographic Architecture). Here is the complete list of its dependencies:

    1. Qt libraries 4.4 at least,
    2. QCA (Qt Cryptographic Architecture), available from Delta XMPP Project
    3. OpenSSL plugin to QCA, available from QCA homepage (this pulls in
      a dependency on OpenSSL of course).

    Note: KDE users meet all the requirements out of the box.

    HOW TO INSTALL:
    $ qmake
    $ make
    $ sudo make install
    HOW TO USE:
    Add these two lines to your project:
    • in project file:
      Qt Code:
      1. CONFIG += oauth
      To copy to clipboard, switch view to plain text mode 
    • in source code:
      Qt Code:
      1. #include <QtOAuth>
      To copy to clipboard, switch view to plain text mode 

    You can start using QOAuth.

    BUGS AND ISSUES:
    report them to QOAuth's bug tracking system:
    http://ayoy.lighthouseapp.com/projec.../tickets?q=all

  2. #2
    Join Date
    Feb 2009
    Location
    ŁÃ³dź, Poland
    Posts
    20
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QOAuth - a Qt OAuth library

    QOAuth 1.0 was released on 7th of August. Here's the changelog:

    v1.0 (07/08/2009):
    • Added support for RSA-SHA1 signing algorithm, also working with passphrase-protected private RSA keys. Passphrase is passed as a QCA::SecureArray, so it won’t be cached on disk or left in memory after quitting the application.
    • Added initial support for PLAINTEXT authorization. It seems to be working, however it may fail with untrusted SSL connections. I didn’t find a service that takes PLAINTEXT into use, only tested it with a test server which communicates over HTTP (unencrypted). But still, if anybody uses PLAINTEXT authorization and provides untrusted server to handle it, it kinda sucks…
    • inlineParameters() extended by the parameter specifying parsing method – now it’s usable for both GET and POST requests,
    • Introduced the QOAuth namespace, with QOAuth::Interface class holding the core functionality.


    The code is available from GitHub, the binaries from qt-apps.org, the full documentation from this place, and the bugs from Lighthouseapp.com.

Similar Threads

  1. Extending a plugin in a static library
    By ultim8 in forum Qt Programming
    Replies: 5
    Last Post: 25th March 2010, 16:10
  2. Replies: 4
    Last Post: 18th December 2009, 19:55
  3. Adding a OAuth library to a QT application
    By srohit24 in forum Qt Programming
    Replies: 1
    Last Post: 14th April 2009, 09:33
  4. plugin in a library
    By alisami in forum Qt Programming
    Replies: 2
    Last Post: 3rd October 2008, 18:21
  5. Replies: 1
    Last Post: 5th March 2007, 21:50

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.