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
76
votes
2 answers

OAuth2 and Google API: access token expiration time?

We have a standalone Java application (see "Installed application") which runs periodically and uses Google API (updates some information from customer databases/ldap/...). To access Google APIs we store username and password in configuration…
72
votes
14 answers

Not a valid origin for the client from Google API Oauth

I'm receiving this error from Google API Oauth: idpiframe_initialization_failed", details: "Not a valid origin for the client: http://127.0.0.…itelist this origin for your project's client ID I'm trying to send a request from this local…
Filipe Ferminiano
  • 8,373
  • 25
  • 104
  • 174
70
votes
20 answers

Error: Could not load the default credentials (Firebase function to firestore)

I am attempting to write an onCall function for Firebase Cloud Functions that performs advanced querying tasks on a firestore database (i.e. checking a text query up against AutoML natural lang to get a category, etc) but I keep running into a…
70
votes
2 answers

what is id_token google oauth

I just got the following result when I tried to do oauth2 to googleapi. Only one thing: I couldn't find what is id_token used for in documentation. { "access_token": "xxxx", "token_type": "Bearer", "expires_in": 3600, "id_token":…
kitokid
  • 3,009
  • 17
  • 65
  • 101
66
votes
8 answers

How do I implement ‘sign in with google’ on my site?

On my site I would like to allow users to sign in with a google account. I plan to use openid but I would like to allow signing in with google because it has more benefits. I've noticed in the past a few sites that have the ability to sign in with a…
user34537
65
votes
2 answers

What does "offline" access in OAuth mean?

What exactly does the word "offline" mean with regard to the offline access granted by an OAuth server? Does it mean that the resource server will return data about the user even when the user is logged out of the third-party application or when the…
Water Cooler v2
  • 32,724
  • 54
  • 166
  • 336
65
votes
6 answers

How to change Google consent screen email?

I created new Google Play game and would like to change the email displayed on Google Consent Screen. Google Developers Console screen has a dropdown to choose email, but just one - admin's email - is here. I've added another user as the owner, but…
LA_
  • 19,823
  • 58
  • 172
  • 308
65
votes
5 answers

Force google account chooser

Is there is a way I can force the google account chooser to appear even if the user is logged in just with one account. I have tried by redirecting to this URL: https://accounts.google.com/AccountChooser?service=lso&continue=[authorizeurl] and it…
José F. Romaniello
  • 13,866
  • 3
  • 36
  • 38
62
votes
9 answers

Using Google OAuth2 with Flask

Can anyone point me to a complete example for authenticating with Google accounts using OAuth2 and Flask, and not on App Engine? I am trying to have users give access to Google Calendar, and then use that access to retrieve information from the…
emning
  • 760
  • 1
  • 6
  • 9
59
votes
9 answers

Can a public IP address be used as Google OAuth redirect URI?

I'm trying to set a web service that needs the user's Google Latitude info, so I'm using Google OAuth to get the user authorization stuff. However, when trying to set the redirection URI in the Google APIs Console for a web application client ID I…
jgg
  • 967
  • 2
  • 10
  • 19
58
votes
9 answers

"This app would like to: Have offline access" when access_type=online

I have a Google App with OAuth 2.0 authentication. Everything used to work fine but recently I started getting the following "Request for permission" screen: The strange part is that I get this screen when I pass access_type=online. Again, this…
Tzach
  • 12,889
  • 11
  • 68
  • 115
54
votes
15 answers

403 Error - Thats an error. Error: disallowed_useragent

I am trying to authorise a user for Google calendar API inside an IOS app. I am using the OAuth2 feature of Google to authenticate users. Authorisation page opens with a 403 error with the description: This user-agent is not permitted to make OAuth…
Subbu
  • 541
  • 1
  • 4
  • 5
53
votes
1 answer

Error 403: access_denied The developer hasn’t given you access to this app despite a new project being created

Please note: This is NOT a duplicate as I followed the SO only verified answer by creating a new project yet it didn't work. Also my case is with chrome extension or chrome app client ID from dev console. Error: Error 403: access_denied The…
52
votes
4 answers

google oauth error invalid_client no support email

I try to implement google oauth, following the Google OAuth2ForDevices. My App is registered on Google Cloud Console, as native App. When I try to follow the OAuth2ForDevices using Google Chromes - Advanced Rest Client Application, I get the json…
jerik
  • 5,714
  • 8
  • 41
  • 80
50
votes
2 answers

Google Drive API, Oauth and service account

I've some issues with Google Drive API, service account and authentication. I read a lot, but I cannot figure out how to solve this. Context: I have some files on my Drive account (about 35GB) and a simple web app which let users to log in, see some…
user6208310