fix(phase6): repair tenant auth ticket exchange and custom-token handoff - #56
Merged
Merged
Conversation
…nd client callback
|
Strix is installed on this repository, but we couldn't run this PR security review because this workspace's trial has ended. Add a card to resume code reviews here. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves the root cause of the tenant Auth Broker handoff failure on Production during
exchangeAuthTicket.Root Cause Investigation
exchangeauthticketat 2026-09-05T15:11:43.562854Z proved:createAuthTicket: HTTP 200 SUCCESSexchangeAuthTicket: HTTP 500 FAILURE at stagecustom_token_creation(getAuth().createCustomToken(...))Unhandled error FirebaseAuthError: Permission 'iam.serviceAccounts.signBlob' denied on resource978890379614-compute@developer.gserviceaccount.comlackedroles/iam.serviceAccountTokenCreatorto sign custom tokens via IAM Credentials API.roles/iam.serviceAccountTokenCreatorto978890379614-compute@developer.gserviceaccount.comon projectgasstationproject-9dd89and on the service account resource itself.src/components/auth/AuthTicketCallback.jsxto cleanly distinguishBROKER_EXCHANGE_*fromCUSTOM_TOKEN_SIGNIN_*errors.exchangeAuthTicketinfunctions/src/index.jsmatchingcreateAuthTicket.Verification
npm run qa:auth-brokerPASSnpm run qa:auth-broker-negativePASS (16 tests)npm run qa:multi-tenantPASS (7 tests)npm run qa:tenant-authorizationPASSnpm run qa:saas-foundationPASSnpm run qa:phase5-portalPASSnpm run qa:central-portal-isolationPASSnpm run qa:product-terminologyPASSnpm run qa:vercel-spa-routingPASSnpm run security:hardeningPASSnpm run security:integrityPASSnpm run security:auditPASS (0 high/crit)npm run buildPASS (2.90s)