gtm-oauth2

retrieve gmail address on login using GTMOAuth2

☆樱花仙子☆ 提交于 2019-12-23 04:52:31
问题 I am using GTMOAuth2 for login on iOS with my enterprise app. Scenario is only users with account @mycompanyname.com can sign in. The problem is I am calling the method that is provided by the documentation, but I am unable to retrieve the user's email account that he used to sign in. The call on sign in is made as follows: _auth = [self authForGoogle]; // Display the authentication view GTMOAuth2ViewControllerTouch * viewController = [[GTMOAuth2ViewControllerTouch alloc]

GTM OAuth does not download Refresh Token - iOS

*爱你&永不变心* 提交于 2019-12-13 18:22:14
问题 I am using Google's GTMOAuth for iOS/Mac SDK in order to be able to connect with APIS such as YouTube API and Instagram API. It all works fine, however when the user authenticates, I can only get access token. This is all well and good, but after a while the access tokens expire and the user has to re-login which is awful. My problem is that when the user authenticates, I ONLY GET back an access token and nothing else... Thanks for you're help :) 回答1: May be this one help you..! I am using

Debug-iphonesimulator gtmsessionfetcher.framework swift no such file directory

ε祈祈猫儿з 提交于 2019-12-11 06:06:57
问题 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 to build the app now but I come across the following error. /Users/JuanPa/Library/Developer/Xcode/DerivedData/jps-showcase-dytvwqtvwsggladxlmwwyoflurwt/Build/Products/Debug-iphonesimulator/jps-showcase.app/Frameworks/GTMSessionFetcher.framework:

Headless obtain token with GTMOAuth2SignIn

别等时光非礼了梦想. 提交于 2019-12-11 03:04:31
问题 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 credentials from within an OCUnit test case? Can anyone who has done this save me the time trawling through Google code? 回答1: It's a three stage process. First, forget about usernames and passwords. They will lead you in the wrong direction. At some