Questions tagged [google-authentication]

All authentication using google accounts that includes plugins, application, games etc. which are based on different APIs provided by google.

Various types of authentication using Google account.

For example:

2002 questions
23
votes
2 answers

Web Google Auth - workaround for 403: disallowed_useragent exists?

There are many StackOverflow posts about this issue, but none that offer a workaround for web apps to log into services via Google Web Auth in an embedded browser like Facebook/Facebook Messenger on iOS; but I discovered that Pinterest's web log in…
osdiab
  • 1,972
  • 3
  • 26
  • 37
23
votes
2 answers

How to Refresh Google AccessToken in Firebase? #AskFirebase

I am attempting to build a web app that will be integrated with and installed into Google Drive. The user will be able to create and share my app's files in their drive. I am trying to write it using Firebase so I can leverage many of the great new…
23
votes
3 answers

Silent sign in to retrieve token with GoogleApiClient

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…
22
votes
14 answers

Google sign-in Android with Firebase - statusCode DEVELOPER_ERROR

I try to implement Google login in my Firebase connected Android app. When I run the app and press Google Sign In button - nothing happen. And I receive this error in onActivityResult: Status{statusCode=DEVELOPER_ERROR, resolution=null}. My code…
20
votes
2 answers

Error: Google id_token is not allowed to be used with this application. Firebase access fails after it was working

I'm using Google SignIn and then authenticate on Firebase using signInWithCredential, passing the Google credentials. I followed all the procedures, and everything was working! And suddenly it stops working. I went to a previous working code and it…
20
votes
1 answer

Verify backend calls from iOS app

I am trying to find an equivalent of this Android verification but for iOS. Initially posted in a blog post but now incorporated into the main android documentation, the verification lets you know 3 things: Then, you know that: The token was…
18
votes
4 answers

How to verify google auth token at server side in node js?

My front end application is authenticated using gmail account. I retrieve id_token after the authentication is successful and send it as Authorization Header as bearer token. E.g. http://localhost:4000/api Authorization Bearer token_id At nodejs…
ANewGuyInTown
  • 5,957
  • 5
  • 33
  • 45
18
votes
2 answers

Specify redirect url for firebase google auth

I'm putting a react web app together with firebase. I have a sign in screen for users to signin with Google using firebase's signInWithRedirect. It all works fine, except that the auth returns to the signin screen which shows again for a couple of…
18
votes
2 answers

Scope to get email address alone?

I use the https://www.googleapis.com/auth/userinfo.email scope to get an email address of the authenticated user. But while authenticating, Google prompts the user: The app would like to: Know who you are on Google+ (for which the help icon says:…
17
votes
4 answers

android GoogleAuthUtil.getTokenWithNotification Intent callback not triggering

I have a background service that calls GoogleAuthUtl.getTokenWithNotification and it works properly but I'm trying to implement the callback portion of this function and that isn't working properly. I've implemented a broadcast receiver and added it…
17
votes
2 answers

Limit Firebase Google OAuth Authentication to specific users

I'm using Firebase to handle my Google OAuth login for my website. Does anyone knew how to restrict the users who have access to the application? For example, I only want x@gmail.com, y@gmail.com, and z@gmail.com to successfully be able to log in…
Arun Kalyanaraman
  • 648
  • 2
  • 10
  • 22
17
votes
3 answers

Subdomain in Google Console Redirect URIs

I have an web application that uses google api (google drive). The application is used by many clients and every client has an subdomain to access the system. So the domain is appdomain.com And for users I have foo.appdomain.com, bar.appdomain.com,…
16
votes
1 answer

Authenticating with the Firebase Admin SDK using environment variable

The problem When I try to use an environment variable to authenticate with Cloud Firestore, I get an ENAMETOOLONG error. I've searched so many places for documentation. If anyone can point me in the right direction, that'd be useful. Creating the…
16
votes
2 answers

Google Login Hitting Twice?

I'm using Google Login via JS and it appears my code is getting data twice. I'm not sure why this is occurring. When I click my "Log In with Google" button, it spits out (console.log(result)) data for the user. THEN a prompt occurs asking me to…
15
votes
3 answers

Google JWT Authentication with AspNet Core 2.0

I am trying to integrate google authentication in my ASP.NET Core 2.0 web api and I cannot figure out how to get it to work. I have this code in my Startup.cs ConfigureServices: services.AddIdentity