Firebase Hosting Sample

Google Sign-In and IAP verification in one small app

Use this page to test Firebase Authentication with Google and, if you deploy the optional verifier service behind Google Cloud IAP, inspect the identity that IAP forwards to your backend.

Firebase Auth

Checking session...

Sign in with your Google account using Firebase Authentication. The app will show your Firebase user details and ID token claims.

Waiting for Firebase config...

IAP Backend Check

Not called yet

Firebase Hosting itself does not support IAP directly. To test IAP, deploy the optional iap-verifier service to Cloud Run, protect it with IAP, and paste that URL into public/env.js.

No IAP request has been made yet.
        

Before you deploy

  1. Copy public/env.example.js to public/env.js.
  2. Fill in your Firebase web app config values.
  3. Enable Google as a sign-in provider in Firebase Authentication.
  4. Optional: deploy the included IAP verifier to Cloud Run and protect it with IAP.