Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How do we manage API clients for Google Identity Platform?

We plan to use the Google Identity Platform for an upcoming portal project. We want to build a few different React-based web clients for this project, and miscellaneous APIs. I don't see a way to add an additional Client to Identity Platform. My expectation is to be able to define a client, set it's individual permissions, etc, and get a Client ID and Client Secret (if not a public app). Where do I go manage this, please? I'm used to using IBM Security Verify where all of these options are available.

0 1 108
1 REPLY 1

Hi @user28929832,

Welcome to Google Cloud Community!

To add another client to the Google Identity Platform for your React-based web clients or APIs, you need to create a new OAuth 2.0 Client ID in the Google Cloud Console.

Sharing with you this document which explains how to implement OAuth 2.0 authorization to access Google APIs from a JavaScript web application. OAuth 2.0 allows users to share specific data with an application while keeping their usernames, passwords, and other information private. For example, an application can use OAuth 2.0 to obtain permission from users to store files in their Google Drives.

For Client ID and Client Secret: 

Applications are categorized as either public or private clients:

  • Private Clients: These apps, like web server applications, can securely store the client secret because they run on servers you control.
  • Public Clients: Native apps or JavaScript-based apps fall under this category. They cannot securely store secrets, as they reside on user devices and as such do not use client secrets.

Additionally, you may also refer to this Stackoverflow discussion, which provided inputs about react-based app | Google Identity Services.

Other references: Signing in with Google for Web, React OAuth2 | Google, Google Sign-In for server-side apps

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.