Questions tagged [google-oauth]

Google APIs use the OAuth 2.0 protocol for authentication and authorization. Google supports common OAuth 2.0 scenarios such as those for web server, installed, and client-side applications. When posting questions, it is most helpful if you could explain who owns the resource that is to be accessed.

Google OAuth 2.0 is a relatively simple protocol. To begin, you obtain OAuth 2.0 credentials from the Google Developers Console. Then your client application requests an access token from the Google Authorization Server, extracts a token from the response, and sends the token to the Google API that you want to access.

References

Useful links

Unofficial support forums:

Google OAuth2 Google+ community

9703 questions
49
votes
13 answers

idpiframe_initialization_failed in Google Sign In from Localhost

I'm trying to create a Google Sign In button by following this link. So far the account choose dialogue box is coming but after that I don't see any result in the console. Instead I'm getting this error at page…
49
votes
1 answer

How can I decode a google OAuth 2.0 JWT (OpenID Connect) in a node app?

I'm having a heck of a time here trying to use google OAuth to authenticate users in my node express app. I can successfully do the OAuth, which returns a response like so: { access_token: 'token string', id_token: 'id.string', expires_in:…
ThePuzzleMaster
  • 920
  • 2
  • 10
  • 18
48
votes
9 answers

Google OAuth 2.0 failing with Error 400: invalid_request for some client_id, but works well for others in the same project

We have some apps (or maybe we should call them a handful of scripts) that use Google APIs to facilitate some administrative tasks. Recently, after making another client_id in the same project, I started getting an error message similar to the one…
chutz
  • 2,256
  • 2
  • 25
  • 38
44
votes
3 answers

Does Google provide test users for integration testing

Test users are very good to do integration testing. When I develop facebook oauth enabled stuff I can programmatically create test users and use them as real users of my application. They behave in the same way of real users, the only difference is…
Fabio
  • 18,856
  • 9
  • 82
  • 114
43
votes
3 answers

Sign in with Google temporarily disabled for this app

We are facing the below screen when trying to authenticate to Google. The app that we are trying to authenticate is used for internal development and we did not publish it to our users. Any idea why this occurs? We faced an Unverified App screen…
Ranjani
  • 1,015
  • 1
  • 9
  • 15
43
votes
9 answers

The signing fingerprint you specified is already used by another Android OAuth2 client

Some time ago I created an example project (lets call it "example project") with Oauth2 client id for android application in Google APIs console. I also added SHA1 fingerprint and package name (for example com.package.name). My mistake was that an…
Elena
  • 503
  • 1
  • 5
  • 10
42
votes
3 answers

How to correctly use Google Plus Sign In with multiple activities?

What would be a good/recommended way of tying up the Google+ api client life cycle with the flow of a multi-activity app? Make the activities depend on the onConnected api client method to trigger its functionality, use it as a one-time only…
Acapulco
  • 3,373
  • 8
  • 38
  • 51
41
votes
13 answers

Google 400 Error: invalid request Custom scheme URIs are not allowed for 'Web' client type

When I am signing into Gmail in my iOS App, I am getting the below error (screenshot) and the sign-in fields do not appear. We are loading the sign-in screen in a WKWebView. We are using a custom URI redirect but why is google throwing this error…
Poke
  • 471
  • 1
  • 4
  • 8
41
votes
6 answers

Error: invalid_request device_id and device_name are required for private IP

I was doing my development with Google Drive API using [localhost:8080]. Suddenly I felt to test it in my local deployment sandbox and it has IP address as [192.168.1.1:8080]. And as per that I changed the credential in developer console client…
phenomenon.aurora
  • 471
  • 1
  • 5
  • 11
41
votes
13 answers

OAuth2.0 token strange behaviour (Invalid Credentials 401)

Usually, Google OAuth2.0 mechanism is working great. The user confirms permission to access Google account with selected scopes. The refresh token is retrieved and saved to long time storage. Each time needed (if the access token expired) access…
Darth Flipman
  • 411
  • 1
  • 4
  • 3
38
votes
7 answers

Testing Google OAuth 2.0 with localhost?

How do I test the Google OAuth 2.0 on my app with localhost, since Google requires a top private domain as the authorized domain? I tried to look up solutions, but all the solutions given have been a while ago, and I think Google has changed their…
Katie
  • 811
  • 1
  • 10
  • 15
37
votes
2 answers

How do client-side JS libraries for OAuth2 maintain secure authentication?

I'm new to OAuth2 and there's a problem I've been struggling with and despite research still can't grasp. The difficulty in having a JS client for OAuth2 is that you can't store the client secret, because it will be widely accessible in the browser.…
machinery
  • 3,793
  • 4
  • 41
  • 52
36
votes
6 answers

How to login to Google API with Service Account in C# - Invalid Credentials

I'm beating myself bloody trying to get a simple service acccount login to work in C#, to Google API and Google Analytics. My company is already getting data into Analytics, and I can query information with their Query Explorer, but getting started…
35
votes
17 answers

Issue when trying to register an app for consent screen in google oauth

I am trying to register my app for Oauth consent screen, so that I can create a OAuth client ID. I keep getting this validation error at end of the form, even though I have submitted everything correctly. An error occurred while saving your…
v1shva
  • 1,261
  • 3
  • 13
  • 28
35
votes
5 answers

Gmail API returns 403 error code and "Delegation denied for "

Gmail API fails for one domain when retrieving messages with this error: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 OK { "code" : 403, "errors" : [ { "domain" : "global", "message" : "Delegation denied for…