Questions tagged [gtm-oauth2]

33 questions
4
votes
4 answers

ld: framework not found GTMOAuth2

Everything was working fine till I got my mac formatted. After formatting it (Moved from El Capitan to Sierra), I cloned the repository, installed Cocoapods, did pod update. And everything got messed up with pods. I cannot build the application. The…
Ravi Sisodia
  • 776
  • 1
  • 5
  • 20
4
votes
2 answers

Difficulty in authenticating iOS with google storage using GTMOAuth2

I've been working on this for over a day so now asking for help! I'm trying to write an iOS app that authenticates using a google service account in order to access Google storage. I can't get beyond this error which occurs at the authoriseRequest…
myagi
  • 71
  • 5
4
votes
1 answer

Different oauth2 native/web client ids for same app

I am accessing Google APIs from a native iOS app (using gtm-oauth2) and from my web app, which each have different client ids. When I try to refresh the access tokens with refresh tokens created by a different client id of the one it was initially…
hyotam
  • 141
  • 3
3
votes
0 answers

Using GoogleAPIClient with tvOS

I want to use GoogleAPIClient/Calendar pod in a tvOS app. My problem is that GTMOAuth2 is an iOS-only pod. How can I authenticate my user without GTMOAuth2? Is it possible to access Google Calendar's api with tvOS, and if so how? Thanks!
3
votes
1 answer

gtm-oauth2 crash on Mac OSX when authenticating with Instagram API

I'm building a small Instagram client for personal use on Mac OSX. I'm currently using gtm-oauth2 to obtain an oauth2 token from Instagram. I'm following the guide provided with the source to obtain this token. I've got it 90% working. The webView…
Radrider33
  • 557
  • 1
  • 4
  • 17
2
votes
0 answers

iOS Google Signin Doesn't Work Properly With New Scopes

In a deprecation announcement from Google, they say that developers need to migrate away from these scopes: https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile and instead use these…
Brian White
  • 8,332
  • 2
  • 43
  • 67
2
votes
2 answers

how to pre-fill email field in GTMOAuth2ViewControllerTouch view

how to pre-fill email field in GTMOAuth2ViewControllerTouch view ? Is it possible ? Has any one tried this ? I am using the standard way to create the view controller class and showing the gtm view modally self.gtmVC = [[GTMOAuth2ViewControllerTouch…
vp_gold
  • 532
  • 4
  • 12
2
votes
1 answer

Google OAuth Login Error: Invalid credentials

I have an iPad application which allows users to login to their Gmail account(s) using OAuth2. Thus far, the login process and email fetching is successful. However, when the app is closed and then re-opened after a (long) period of time, an error…
jac300
  • 5,182
  • 14
  • 54
  • 89
2
votes
1 answer

Use observer to signal semaphore?

I use the following method to attempt to synchronously obtain an OAuth access token within 10 seconds, otherwise return nil. It works fine, however as an exercise I would like to convert my code to use a semaphore. The Runloop version -…
Jasper Blues
  • 28,258
  • 22
  • 102
  • 185
2
votes
1 answer

Headless obtain token with GTMOAuth2SignIn

I would like to write integration tests for all of my service methods. These methods are secured using OAuth2, and the iOS client is using gtm-oauth2 library. What's some code that I can write to obtain an access token using username/password…
Jasper Blues
  • 28,258
  • 22
  • 102
  • 185
1
vote
2 answers

Debug-iphonesimulator gtmsessionfetcher.framework swift no such file directory

I'm fairly new to programming. I am trying to install Firebase and the Facebook iOS SDK into my app to allow for Facebook authentication. I have already installed the necessary pod files(FireBase) and Frameworks (FBSDK) on to my project. I am trying…
Juan Villa
  • 11
  • 1
  • 2
1
vote
0 answers

google plus integration issue in swift 3.0

func finishedWithAuth(auth: GTMOAuth2Authentication!, error: NSError!) { let plusService :GTLServicePlus = GTLServicePlus.init() plusService.retryEnabled = true plusService.authorizer = GPPSignIn.sharedInstance().authentication …
Perumal
  • 21
  • 5
1
vote
0 answers

How to change clientId (&cid) in Google Tag Manager iOS?

I need to change the &cid (client Id) parameter in Google Tag Manager. I have tried setting kGAIClientId on tracker of GAI (Google Analytics). self.tracker =[[GAI sharedInstance] trackerWithTrackingId:GAProperty_VALUE]; [self.tracker…
1
vote
1 answer

GTM OAuth 2.0 on iOS - retrieving user's email

GTMOAuth 2.0 seems like an excellent tool for OAuth 2.0 verification on iOS. I am trying to retrieve the full name and email of a Google user by implementing GTMOAuth-2 in Xcode but am having a bit of trouble. Based on this answer: Retrieve User…
1
vote
2 answers

Can't get Selector to work for my Swift Function

I have a mixed Swift and Objective C application. The swift app uses some ObjectiveC libaries to handle OAuth2 authentication. Part of that is a callback to a delegate method once the OAuth2 request for a token has completed. The following code is…
Gareth Oates
  • 399
  • 4
  • 14
1
2 3