Google 400 Error: Invalid Request Custom Scheme Uris Are Not Allowed for 'Web' Client Type

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

My guess is that your client is registered incorrectly in Google Cloud Console. A 'WEB' client is typically a server or Javascript application. An iOS app should be registered as an iOS client.

https://developers.google.com/identity/protocols/OAuth2InstalledApp#creatingcred

Custom scheme URIs are not allowed for 'Web' client type - Google with Firebase

The first step is to check if you have already the OAuth 2.0 ID for iOS. To do this please open the Credentials page in the API Console. I hope you will find iOS client for your application under OAuth 2.0 client IDs section. If not, please follow this Guide
The second step is to replace the Web Client ID with in iOS Client ID from OAuth 2.0 client IDs section. To do this, you should open the GoogleService-Info.plist and modify following keys: CLIENT_ID with [value].apps.googleusercontent.com and REVERSED_CLIENT_ID with com.googleusercontent.apps.[value].

React-Native: Google Custom scheme URIs are not allowed for 'WEB' client type

Its a very small mistake. The issue is in generating key for Google. I follow below steps and generate new key and its work for me.

1) Open “https://console.developers.google.com” and generate one application.

2) You will get three menu on Left size. Click on “Credential” tab.

3) You will get new window with three option. “Credentials”, “OAuth consent
screen” and “Domain verification”.

4) Click on Credentials and then "Create Credentials" from it.

5) Click on OAuth Client Id and fill information. You will get the one key.

Use it into your application and it will work fine.

Hope these steps will help to other guys also.

Happy Coding

Sample Image

Google OAuth 2 authorization - Error: redirect_uri_mismatch

The redirect URI (where the response is returned to) has to be registered in the APIs console, and the error is indicating that you haven't done that, or haven't done it correctly.

Go to the console for your project and look under API Access. You should see your client ID & client secret there, along with a list of redirect URIs. If the URI you want isn't listed, click edit settings and add the URI to the list.

EDIT: (From a highly rated comment below) Note that updating the google api console and that change being present can take some time. Generally only a few minutes but sometimes it seems longer.

Google OAuth no longer supported for progressive applications?

long story short it works again - has been for few weeks now

I could not find specific release notes, and i'm not sure if problem was fixed on apple or google side, please share if you know - I'm curious if it's a permanent solution



Related Topics



Leave a reply



Submit