google-signin

Google Sign In Button — How to get id_token on server when using redirect flow

和自甴很熟 提交于 2019-12-30 06:24:49
问题 I'm adding a "Sign In with Google" federated login button to my site. For desktop I'm using the popup window which works great like this: gapi.auth2.init(); gapi.auth2.getAuthInstance().signIn().then(function(user) { var id_token = user.getAuthResponse().id_token; // ajax call to pass this to server }); However on mobile we want to use redirects instead of popups, since separate tabs are a little awkward in mobile browsers. I just change to: gapi.auth2.init({ ux_mode: 'redirect', redirect_uri

FirebaseAuthInvalidCredentialsException when using “One account per email address”

混江龙づ霸主 提交于 2019-12-30 06:07:38
问题 ... if you don't allow multiple accounts with the same email address, a user cannot create a new account that signs in using a Google Account with the email address ex@gmail.com if there already is an account that signs in using the email address ex@gmail.com and a password. I was able to sign in with Google provider for the same email that was already registered via Email provider, so Google provider replaced Email provider and latter then fails to sign in with

Get Google contacts using API on iOS

孤人 提交于 2019-12-28 16:07:43
问题 I have added Google login to my app which uses Firebase to login with social media. I am now trying to access the friends of the Google user. I want to return a list of friends/contacts so I can search to see if they are currently using the app. I have found very little information on this so far. There are a number of stackoverflow questions which are unanswered asking a similar thing. The Google API has been updated from a Google+ login to a Google Signin API meaning that whereas previously

App getting crash when click on GoogleSignIn button

对着背影说爱祢 提交于 2019-12-28 14:01:40
问题 I am using Google Sign-In SDK 4.0.1. When I press googleSignInButton then app will be crash. And gave below error, how to fix this: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Your app is missing support for the following URL schemes: com.googleusercontent.apps.107731993306-6s44u18onibp6gi0ddj94si1aifshhg6' *** First throw call stack: ( 0 CoreFoundation 0x0000000101ac0d4b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x000000010110121e objc_exception_throw

Silent sign in to retrieve token with GoogleApiClient

时光怂恿深爱的人放手 提交于 2019-12-28 05:44:28
问题 I am using "Google Sign-In" in my app. Hence I use the class GoogleApiClient to get the user email and the ID token that I need for my backend. When the user signs in, then I have access to an Activity (of course) and I use that Activity to let the GoogleApiClient handle the UI lifecycle stuff by calling builder.enableAutoManage(myActivity, ...) This works fine. However, at a later stage (several days later), I need to get a new token (for some reason that I will not go into further here). I

Silent sign in to retrieve token with GoogleApiClient

落花浮王杯 提交于 2019-12-28 05:44:26
问题 I am using "Google Sign-In" in my app. Hence I use the class GoogleApiClient to get the user email and the ID token that I need for my backend. When the user signs in, then I have access to an Activity (of course) and I use that Activity to let the GoogleApiClient handle the UI lifecycle stuff by calling builder.enableAutoManage(myActivity, ...) This works fine. However, at a later stage (several days later), I need to get a new token (for some reason that I will not go into further here). I

Basic Google Sign-In for Websites code not working in Internet Explorer 11

不问归期 提交于 2019-12-28 05:22:11
问题 I am attempting to use Google Sign-In for Websites (https://developers.google.com/identity/sign-in/web/) and noticed that my solution is not working in Internet Explorer 11. To try to eliminate as many factors as possible, I created a simple test case based on the sample code provided by Google. I've tested it in Chrome on my Windows 7 PC, Chrome on my Mac, Safari on my Mac, Firefox on my Mac and Safari on my iPhone. It works on all of these (e.g., when I click the sign in button and select

is there a way to get Socially signed in user from Servlet request using Stormpath?

偶尔善良 提交于 2019-12-25 10:00:50
问题 Using stormpath web login, once a User has been authenticated, the currently logged in user Account is available on subsequent requests and can be retrieved by doing the following (e.g from within a Servlet) ; Account account = AccountResolver.INSTANCE.getAccount(request); where request is HttpServletRequest Now, what i need to know is, why is it not possible to do the same thing for a socially signed in user (i.e a user that signs in with google, facebook, linked-in)??? I know that on sign

is there a way to get Socially signed in user from Servlet request using Stormpath?

寵の児 提交于 2019-12-25 10:00:12
问题 Using stormpath web login, once a User has been authenticated, the currently logged in user Account is available on subsequent requests and can be retrieved by doing the following (e.g from within a Servlet) ; Account account = AccountResolver.INSTANCE.getAccount(request); where request is HttpServletRequest Now, what i need to know is, why is it not possible to do the same thing for a socially signed in user (i.e a user that signs in with google, facebook, linked-in)??? I know that on sign

Google Sign-In Error -4

我的梦境 提交于 2019-12-25 02:46:58
问题 To my knowledge, I have implemented Google Sign-in the exact way that Google states to do it on the website. It was working for a while, but now I cannot get it to work. I am receiving the error "The operation couldn’t be completed. (com.google.GIDSignIn error -4.)" and am unsure on what is happening. I have checked documentation for this specific error and ran through every possible idea on Stack Overflow. I appreciate any help in advance. 回答1: As mentioned here http://cocoadocs.org/docsets