Questions tagged [google-identity]

The Google Identity Platform consists of identity tools from Google to help you quickly build an authentication system for reducing the friction of getting users into your app.

The Google Identity Platform consists of identity tools from Google to help you quickly build an authentication system for reducing the friction of getting users into your app.

Currently the Google Identity Platform is built of:

483 questions
7
votes
1 answer

CORS issue only when revoking Token by calling (Google Identity Services) GIS's google.accounts.oauth2.revoke

I am trying to invoke GSI Javascript google.accounts.oauth2.revoke method. Under the hood it sends a request to https://oauth2.googleapis.com/revoke. However there is CORS issue: await new Promise(r => google.accounts.oauth2.revoke(token,…
Luke Vo
  • 17,859
  • 21
  • 105
  • 181
7
votes
1 answer

How to use "Sign In With Google" together with TokenClient?

I read the information and examples from the Sign in with Google Guides and the Google Identity Services JavaScript SDK Guides and I managed to set up authorization using Tokens to Google Cloud APIs. Unfortunately, I still get a login prompt to…
7
votes
4 answers

Using Google One Tap in Angular

I'd like to use Google One Tap in my Angular 11 app. Following the documentation I added to my html and then used the following code in my app.component.html:
Milan Ferus-Comelo
  • 690
  • 1
  • 8
  • 20
7
votes
1 answer

How to use the Google API client for JavaScript with a One-Tap sign in flow?

I'm using Google One-Tap sign in to authenticate users, and after the user is authenticated I get an access token. I know that I can use this access token in order to work with the Google API client for JavaScript ("GAPI"). But I can't find any way…
7
votes
1 answer

Google Authentication with a Backend Server required Scopes

I am following these instructions (https://developers.google.com/identity/sign-in/android/backend-auth) for getting an ID token to be sent to my Backend but when I set String scopes = "audience:server:client_id:" + Service.SERVER_CLIENT_ID; (Yes the…
SARose
  • 3,558
  • 5
  • 39
  • 49
6
votes
4 answers

Google Identity Service Oauth2 detect if consent pop-up is closed

I am using Google Identity Services, and facing some problems. Have a look at the function below to loginUser and get the access_token: const client = (window as any).google.accounts.oauth2.initTokenClient({ client_id:…
6
votes
2 answers

How to get Firebase auth OAuthProvider to add additional scopes using OIDC provider

I have added a custom OIDC Provider to my Google Identity Platform. I can successfully authenticate with it, so I know it's not an issue with the provider configs, but for some reason when I try to add additional scopes to the token request the new…
6
votes
3 answers

how to define variable google when using google one tap javascript API

I am following this documentation google one tap sign in to implement google one tap sign-in in my react app. I have added below code to my component JSX and I started to have google prompt to sign-in: const handleCredentialResponse = response =>…
6
votes
1 answer

Google one tap sign up always returns noCredentialsAvailable

I have set up a bare bones test for the new google one tap sign in / sign up.