Skip to content

Commit 2ad870c

Browse files
wieringenjoehan
andauthored
fix: make sure the auth emulator respects multi-tenancy for sso users (#8544)
* fix: make sure the auth emulator respects multi-tenancy for sso users * chore: add changelog entry for #8544 --------- Co-authored-by: joehan <[email protected]>
1 parent 5b3926e commit 2ad870c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Add GCP API client functions to support App Hosting deploy from source feature. (#8545)
77
- Changed firebase init template for functions to pin runtime version on init. (#8553)
88
- Fix an issue where updating a Cloud Function that retires would add incorrect fields to the updateMask. (#8560)
9+
- Fixed multi tenancy support for SSO users in the auth emulator (#8544)
910
- Add SDK autoinit capabilities to App Hosting emulator. (#8582)
1011
- Provision App Hosting compute service account during init flow. (#8580)
1112
- Updated the Firebase Data Connect local toolkit to v2.6.1, which includes the following changes: (#8598)

src/emulator/auth/widget_ui.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ assert(!internalError, internalError);
2121
2222
var apiKey = query.get('apiKey');
2323
var appName = query.get('appName');
24+
var tenantId = query.get('tid');
2425
var authType = query.get('authType');
2526
var providerId = query.get('providerId');
2627
var redirectUrl = query.get('redirectUrl');
@@ -192,7 +193,7 @@ function finishWithUser(urlEncodedIdToken, email) {
192193
urlResponse: url,
193194
sessionId: "ValueNotUsedByAuthEmulator",
194195
postBody: "",
195-
tenantId: null,
196+
tenantId: tenantId,
196197
error: null,
197198
});
198199
}

0 commit comments

Comments
 (0)