Comments, Code and Qt. Some words about the wonderful world of software engineering

21May/1110

OAuth2 explained with Qt Quick

Posted by kypeli

...or how to do Facebook authentication with Qt Quick. In this blog post I will give you an idea how OAuth2 works and how to gain access to Facebook from your Qt Quick application using OAuth2. I could have used any other service that uses OAuth2 for this blog post too, but I chose Facebook since it is a fairly well known and widely used service. To do OAuth2 authentication might sound daunting and I don't blame you. OAuth1 is hard to do. Still, it's used by many popular web services, like Twitter. Because OAuth1 is so hard to do, I've even created a library for Qt that handles OAuth1 authentication to make your life easier. But ever since the library got released I wanted to add support for OAuth2 into the library too, because I knew people also wanted to use services that only support OAuth2, like Facebook. But this was before I understood how simple OAuth2 really is. Now I am not even sure if it's worth adding OAuth2 support to this library at all.

Technorati Tags: , , , ,

31Oct/1045

Introducing kQOAuth – Easy and Powerful OAuth library for Qt

Posted by kypeli

kQOAuth is a powerful yet easy way to integrate OAuth authentication to your Qt application. kQOAuth handles OAuth request signing, request submitting and reply parsing for you. It also provides an easy way to retrieve user authorization to protected resources with a built in HTTP server. All this is done with Qt programming in mind, so you can use Qt's signals to react to OAuth events in your own application. This also means that the library works fully asynchronously. kQOAuth is licensed under the LGPL license. You can read more about kQOAuth usage in my next post: Advanced use of kQOAuth. There is now also an official web page for kQOAuth: http://www.johanpaul.com/blog/kqoauth/ If you are unfamiliar with OAuth, it is worth first checking out some tutorials:

Technorati Tags: , , , , ,