google-signin

iOS Google SignIn view missing navigation bar and bottom bar

半腔热情 提交于 2019-12-23 04:45:19
问题 @interface GooglePlusManager() <GIDSignInDelegate,GIDSignInUIDelegate> @property (nonatomic, strong) GIDSignIn *gppSignIn; @property (nonatomic, weak) UIViewController * localVC; @end @implementation TWNGooglePlusManager (void)doGooglePlusLogin: (UIViewController *)viewController { [self setPropertiesToInitialState]; NSString* clientId = [[[NSBundle mainBundle] infoDictionary] valueForKey:@"GoogleClientId"]; self.gppSignIn = [GIDSignIn sharedInstance]; [self.gppSignIn setClientID:clientId];

GIDSignIn.sharedInstance().currentUser nil when relaunching app

前提是你 提交于 2019-12-22 12:28:09
问题 Initially I was having a problem with the check to see if we have saved data into the keychain. I found this post and followed the suggestion by BhavinBhadani: Whenever you check if ([GIDSignIn sharedInstance].hasAuthInKeychain) , before that add your sign in scopes.. https://github.com/googlesamples/google-services/issues/27 This has solved my first problem of GIDSignIn.sharedInstance().hasAuthInKeychain() returning true after the user has logged in successfully before and then has killed

GIDSignIn.sharedInstance().currentUser nil when relaunching app

孤者浪人 提交于 2019-12-22 12:27:08
问题 Initially I was having a problem with the check to see if we have saved data into the keychain. I found this post and followed the suggestion by BhavinBhadani: Whenever you check if ([GIDSignIn sharedInstance].hasAuthInKeychain) , before that add your sign in scopes.. https://github.com/googlesamples/google-services/issues/27 This has solved my first problem of GIDSignIn.sharedInstance().hasAuthInKeychain() returning true after the user has logged in successfully before and then has killed

Google Signin returns display name as null only when Add account in the flow

偶尔善良 提交于 2019-12-22 08:59:11
问题 In my current project I have implemented google sign in feature. Am fetching user information when logged in. In the flow, there is option to Add Account in google dialog. When user trying to add account on that time I am getting the email properly but the display name as null. Here is the code which am using for sign in google. GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestEmail() .requestProfile() .requestScopes(new Scope(Scopes.PLUS

Flutter: Platform Exception upon cancelling Google Sign In flow

独自空忆成欢 提交于 2019-12-22 08:29:18
问题 This is my pubspec.yaml. I'm using Flutter: dependencies: flutter: sdk: flutter cupertino_icons: ^0.1.2 http: ^0.11.3 #Google Sign In google_sign_in: 3.0.3 firebase_auth: ^0.5.18 flutter_svg: ^0.5.0 I can authenticate fine, the Sign In structure works, however if I'm at the Google Sign In and I cancel Google's authentication flow by hitting the back button on my physical device (S7 Edge), the application locks up and returns this: Exception has occurred. PlatformException(sign_in_failed,

Google javascript sign-in api: no offline access

拈花ヽ惹草 提交于 2019-12-22 06:33:07
问题 I'm trying to implement Google Sign-In for server-side apps as shown in Google documentation: Google Sign-In for server-side apps, but the consent window never asks for offline access. After selecting a user it just closes and calls the sign in handler function. As a result, when I get the one time code and send it to the server, I cannot exchange it for a refresh token, only for access and id tokens. Here is my client code: In the HTML file: <script src="https://apis.google.com/js/platform

How do I initialise Google Sign in with no login button?

荒凉一梦 提交于 2019-12-22 06:08:35
问题 The below code works as a simple test page that uses Google sign in: <html lang="en"> <head> <script type="text/javascript"> function onGapiLoaded() { auth = gapi.auth2.init({ client_id: "REPLACE_WITH_YOUR_ID", scope: "profile email" }); console.log( "signed in: " + auth.isSignedIn.get() ); auth.isSignedIn.listen( function(signedIn){ console.log( "signedin: " + signedIn ) } ); gapi.signin2.render( "signInButton", { 'width': 230, 'height': 50, 'longtitle': true, 'theme': 'dark', 'onsuccess':

How do I initialise Google Sign in with no login button?

点点圈 提交于 2019-12-22 06:07:35
问题 The below code works as a simple test page that uses Google sign in: <html lang="en"> <head> <script type="text/javascript"> function onGapiLoaded() { auth = gapi.auth2.init({ client_id: "REPLACE_WITH_YOUR_ID", scope: "profile email" }); console.log( "signed in: " + auth.isSignedIn.get() ); auth.isSignedIn.listen( function(signedIn){ console.log( "signedin: " + signedIn ) } ); gapi.signin2.render( "signInButton", { 'width': 230, 'height': 50, 'longtitle': true, 'theme': 'dark', 'onsuccess':

Check whether the user is already logged in using Auth.GoogleSignInApi?

时间秒杀一切 提交于 2019-12-22 05:13:59
问题 I fount that in order to sign in the user I have to use this code: Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient); startActivityForResult(signInIntent, RC_SIGN_IN); to signout new ResultCallback<Status>() { @Override public void onResult(Status status) { disconnect(); } }); But when the user relaunch the app and he is already logged in (and no sign out before) is it possible to detect this 'currently logged in' state? Obviously, it is possible to save 'logged in'

Google Sign In - Signing out on refresh

China☆狼群 提交于 2019-12-22 03:58:16
问题 I have the following set up: .service('googleService', ['$q', function ($q) { var self = this; this.load = function(){ var deferred = $q.defer(); gapi.load('auth2', function(){ var auth2 = gapi.auth2.init(); auth2.then(function(){ deferred.resolve(); }); addAuth2Functions(auth2); }); return deferred.promise; }; function addAuth2Functions(auth2) { self.isSignedIn = function(){ return auth2.isSignedIn.get(); } self.signOut = function(){ var deferred = $q.defer(); auth2.signOut().then(deferred