Skip to content

Charlesthebird/editor-for-google-identity-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Editor for Google Identity Platform

This repo includes an example app where you can edit your Google Identity Platform users and their custom claims. The Google Cloud Console UI doesn't provide tools to do this, as far as I know. This app is one way that you can manage those custom user attributes for your users. There are also some React wrapper components included, which can help make implementing authentication and authorization easier.

To get this working, create the file: /ui/sites/example-app/.env, and add this information to it:

VITE_FIREBASE_API_KEY="your-api-key"
VITE_FIREBASE_AUTH_DOMAIN="your-auth-domain"
VITE_EDITOR_API_URL="http://localhost:3001"

You also need to add a /server/nodejs/fb-admin-key.json file, which is your Firebase admin private JSON key file that you can generate in your Google Cloud IAM settings for your Firebase Admin Service Account. This key should be treated very securely.

Then run

make install

Then in two different terminals, run:

make start-example

and

make start-server

You should then see a website running locally at http://localhost:3000. From here, you can edit your Google Identity Platform users and custom claims. This website is the example app project at ./ui/sites/example-app. Custom claims data are stored within Google Identity Platform, so you don't have to set up any extra storage resources for managing user authorization.

About

Includes tools to make Firebase auth easier, and tools to manage Google Identity Platform users and their custom claims.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors