Git Product home page Git Product logo

app-engine-firebase-identity's Introduction

example of a firebase login with bring your own identity

  • Not having to store user credentials is a great way to limit exposure as a data custodian.
  • Frontend authenticates with a byo identity flavor (google, github, linkedin... managed via widget configureFirebaseLoginWidget) and receives a bearer token back
  • Backend validate bearer by calling firebase with google.oauth2.id_token.verify_firebase_token

instructions

git clone

goto https://console.firebase.google.com/
If it is not already associated with your GCP project, chose Add a project from the project drop down at the top of the screen

Click the gear icon in the topleft of the Firebase menu, and Chose project settings

On the general page add a web app under "your apps" (leave hosting unchecked)
Copy the JavaScript config into ./frontend/main.js

also in main.js change backendHostUrl to match your backend
and change the CORs front end url to match your front end application URL in main.py in the backend folder

gcloud app deploy backend/app.yaml --project
gcloud app deploy frontend/app.yaml --project

split front / back ends

Facilitate independent deployments and isolate deployments to only what changed

inspiration from

https://github.com/GoogleCloudPlatform/python-docs-samples.git
cd python-docs-samples/appengine/standard/firebase/firenotes

app-engine-firebase-identity's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.