Integrating Google sign-in (GIDSIgnIn) and GTMOAuth2Authentication.

177 views
Skip to first unread message

Jonathan Pinlac

unread,
Jul 5, 2016, 10:57:05 AM7/5/16
to Google APIs Client Library for Objective-C
Hi, 

I'm using google sign-in for authentication in my app and for firebase, but I also need to access the google calendar api which requires authentication through GTM-OAuth2. Is there anyway to reuse my google sign-in credentials for the OAuth2 authentication?

Thomas Van Lenten

unread,
Jul 6, 2016, 11:47:28 AM7/6/16
to Google APIs Client Library for Objective-C

On Tuesday, July 5, 2016 at 10:57:05 AM UTC-4, Jonathan Pinlac wrote:
Hi, 

I'm using google sign-in for authentication in my app and for firebase, but I also need to access the google calendar api which requires authentication through GTM-OAuth2. Is there anyway to reuse my google sign-in credentials for the OAuth2 authentication?

You might want to see if the GIDSignIn info has a support area, but taking a quick peek, it looks like they expose an authorizer: https://developers.google.com/identity/sign-in/ios/api/interface_g_i_d_authentication.html#method-detail

GTLRCalendar Service has an authorizer (http://google3/third_party/objective_c/google_api_objectivec_client_for_rest/Source/ Objects/GTLRService.h?l=287) property that can be set.

TVL

Reply all
Reply to author
Forward
0 new messages