summaryrefslogtreecommitdiff
path: root/tests/oauth2.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: Don't call g_type_init() on newer glibChristophe Fergeau2014-09-031-0/+2
| | | | | | This is deprecated and causes a compile warning https://bugzilla.gnome.org/show_bug.cgi?id=735921
* Drop obsolete g_thread_init()Martin Pitt2012-06-161-1/+0
| | | | | | | | | | Since version 2.2 g_type_init() initializes also the thread system so g_thread_init() is not required anymore. It is deprecated since glib 2.31. Bump glib requirement accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=650061
* Add a oauth2 proxyJonathon Jongsma2010-05-261-0/+56
This new class provides a proxy class for oauth2-based web services, such as the new facebook graph API. The basic idea is as follows: - Construct a OAuth2Proxy object - Build a login url with _build_login_url(_full)() - Display said url in a browser widget (e.g. webkit) and listen for redirects to the specified 'redirect_uri' - Extract the access token from the uri that you are redirected to - Set the access token for the proxy with _set_access_token() http://bugs.meego.com/show_bug.cgi?id=2265