Skip to content

CIAM Google Dev and Test User Flow Checklist

CIAM Google Dev and Test User Flow Checklist

Purpose

Complete Google sign-in setup in one pass for:

  • Synkronyx ERO CIAM (dev)
  • Synkronyx ERO CIAM (test)

within the nonproduction CIAM tenant.

Naming convention standard used by automation:

  • Dev: B2C_1_SUSI_ERO_DEV
  • Test: B2C_1_SUSI_ERO_TEST
  • Prod: B2C_1_SUSI_ERO_PROD

Tenant and Application Targets

  • Tenant name: Synkronyx ERO CIAM (nonproduction)
  • Tenant ID: 78ddb811-8ab7-4d7b-bfb8-c3d96e04d00d
  • Tenant domain: sknxerononproduction.onmicrosoft.com

Applications:

  • ERO PWA (DEV)
    • Client ID: 0946d2ef-6436-4226-a9c4-81e7bc969f3c
  • ERO PWA (TEST)
    • Client ID: a5efb7a0-a66e-439d-8fb8-66f6908aeac5

Redirect URI manifests:

  • settings/google-redirect-uris-dev.txt
  • settings/google-redirect-uris-test.txt

Step 1: Switch Tenant Context

  1. Open Microsoft Entra admin center.
  2. Open Manage tenants.
  3. Select Synkronyx ERO CIAM (nonproduction).
  4. Click Switch.
  5. Confirm top-right tenant context is nonproduction.

Step 2: Configure Google IdP Once at Tenant Level

Preferred automated path from repository root:

Terminal window
./scripts/deploy/bootstrap-google-oauth.ps1 -Environment dev -SkipProjectBootstrap -EnsureGoogleApiKey -UserFlows B2C_1_SUSI_ERO_DEV
./scripts/deploy/bootstrap-google-oauth.ps1 -Environment test -SkipProjectBootstrap -EnsureGoogleApiKey -UserFlows B2C_1_SUSI_ERO_TEST

Manual portal fallback:

  1. Go to External Identities.
  2. Open All identity providers.
  3. Select Google under Built-in providers.
  4. Click Configure or Edit.
  5. Paste Google Client ID.
  6. Paste Google Client Secret.
  7. Click Save.

Note: Google IdP is tenant-level and is reused by both DEV and TEST user flows. Note: Microsoft account and Entra providers remain unchanged by this automation.

Step 3: Update Google OAuth Redirects

  1. Open Google Cloud Console for project synkronyx-ero.
  2. Open APIs and Services.
  3. Open Credentials.
  4. Open the OAuth 2.0 Web client used for Entra federation.
  5. In Authorized redirect URIs, add every URI from settings/google-redirect-uris-dev.txt.
  6. Add every URI from settings/google-redirect-uris-test.txt.
  7. Remove duplicates if Google flags duplicates.
  8. Click Save.

Step 4: Create DEV User Flow

  1. Back in Entra, go to External Identities.
  2. Open User flows.
  3. Click New user flow.
  4. Choose Sign up and sign in.
  5. Set Name to B2C_1_SUSI_ERO_DEV.
  6. In Identity providers, enable Google.
  7. Enable one local fallback option:
    • Email one-time passcode, or
    • Email and password.
  8. In User attributes, select Email and Display Name.
  9. Click Create.

Step 5: Attach DEV Application to DEV Flow

  1. Open B2C_1_SUSI_ERO_DEV.
  2. Open Applications.
  3. Click Add application.
  4. Select ERO PWA (DEV).
  5. Confirm reply URL is http://localhost:4321/ for local workstation development.
  6. Click Save.

Step 6: Create TEST User Flow

  1. Go to User flows.
  2. Click New user flow.
  3. Choose Sign up and sign in.
  4. Set Name to B2C_1_SUSI_ERO_TEST.
  5. Enable Google in Identity providers.
  6. Enable the same local fallback method used in DEV.
  7. In User attributes, select Email and Display Name.
  8. Click Create.

Step 7: Attach TEST Application to TEST Flow

  1. Open B2C_1_SUSI_ERO_TEST.
  2. Open Applications.
  3. Click Add application.
  4. Select ERO PWA (TEST).
  5. Set reply URL to the TEST cloud callback URL.
  6. If TEST cloud callback is not ready, temporarily set http://localhost:4321/ for flow validation and replace before CI or CD release.
  7. Click Save.

Step 8: Validate DEV Flow

  1. In User flows, open B2C_1_SUSI_ERO_DEV.
  2. Click Run user flow.
  3. Choose app ERO PWA (DEV).
  4. Set redirect URI to http://localhost:4321/.
  5. Start flow.
  6. Confirm Google button appears and sign-in succeeds.

Step 9: Validate TEST Flow

  1. In User flows, open B2C_1_SUSI_ERO_TEST.
  2. Click Run user flow.
  3. Choose app ERO PWA (TEST).
  4. Set redirect URI to TEST cloud callback URL.
  5. Start flow.
  6. Confirm Google button appears and sign-in succeeds.

Completion Criteria

All are true:

  • Google provider is configured in nonproduction tenant.
  • DEV flow exists and is bound to ERO PWA (DEV).
  • TEST flow exists and is bound to ERO PWA (TEST).
  • Redirect URIs from both manifests are present in Google OAuth client.
  • Run user flow passes for DEV and TEST.