How to save the user credentials when the user login using GDataOAuthAuthentication in iphone

32 views
Skip to first unread message

Chakradhar k

unread,
May 20, 2011, 7:42:30 AM5/20/11
to gdata-objec...@googlegroups.com
Hi,


    I created an app using GDataOAuthAuthentication for youtube integration . That works fine . When i click on button , it opens the youtube login and asks permissions and get back. Upto this working

fine. Now put a switch besides youtube button . Now i want to enable that switch if the user already login.  But , how can i save and update that GDataOAuthAuthentication when user logeed in.

What is method i can call for authorization.

Could u plz guide me if u know.


Thanks in advance..

Greg Robbins

unread,
May 20, 2011, 10:26:40 AM5/20/11
to gdata-objec...@googlegroups.com
The example applications include code for saving and retrieving user authorization objects. Search the sample application code for "keychain" to find the appropriate references. The OAuth controller introduction wiki page describes saving and retrieving the auth objects in the section "Retrieving Authorization from the Keychain"

New applications should be using the GTM OAuth 2 library for sign-in rather than the older OAuth 1 support in previous releases of the Google Data APIs library. Check out the top-of-trunk library from the project via subversion to get the latest sources, including GTM OAuth 2 and GTM HTTP Fetcher integration.
Reply all
Reply to author
Forward
0 new messages