Title: [FR] Use firebase emulator for TenantManagementService · Issue #910 · firebase/firebase-admin-python · GitHub
Open Graph Title: [FR] Use firebase emulator for TenantManagementService · Issue #910 · firebase/firebase-admin-python
X Title: [FR] Use firebase emulator for TenantManagementService · Issue #910 · firebase/firebase-admin-python
Description: Is your feature request related to a problem? Please describe. Currently only the Auth client supports running against the firebase emulator when setting the FIREBASE_AUTH_EMULATOR_HOST environment variable. However when wanting to list ...
Open Graph Description: Is your feature request related to a problem? Please describe. Currently only the Auth client supports running against the firebase emulator when setting the FIREBASE_AUTH_EMULATOR_HOST environment...
X Description: Is your feature request related to a problem? Please describe. Currently only the Auth client supports running against the firebase emulator when setting the FIREBASE_AUTH_EMULATOR_HOST environment...
Opengraph URL: https://github.com/firebase/firebase-admin-python/issues/910
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[FR] Use firebase emulator for TenantManagementService","articleBody":"**Is your feature request related to a problem? Please describe.**\nCurrently only the Auth client supports running against the firebase emulator when setting the `FIREBASE_AUTH_EMULATOR_HOST` environment variable. However when wanting to list for example tenants with TenantManagementService you cannot do that and it forcibly uses `TENANT_MGT_URL = 'https://identitytoolkit.googleapis.com/v2'`. The emulator itself however emulates some of these endpoints (like `/projects/{project_id}/tenants`) so some of those are supported.\n\n**Describe the solution you'd like**\nAdd support for setting `FIREBASE_TENANT_EMULATOR_HOST` and use that in `_TenantManagementService`\n\n**Describe alternatives you've considered**\nDoing direct HTTP REST API calls to the emulator or extending the management service manually like\n\n```py\nclass EmulatedTenantManagementService(tenant_mgt._TenantManagementService):\n TENANT_MGT_URL = (\n f\"http://{firebase_auth_emulator_host}/identitytoolkit.googleapis.com/v2\"\n )\n\n def __init__(self, app: firebase_admin.App):\n super().__init__(app)\n credential = _utils.EmulatorAdminCredentials()\n version_header = f\"Python/Admin/{firebase_admin.__version__}\"\n base_url = f\"{self.TENANT_MGT_URL}/projects/{app.project_id}\"\n self.client = _http_client.JsonHttpClient(\n credential=credential,\n base_url=base_url,\n headers={\"X-Client-Version\": version_header},\n )\n\napp = firebase_admin.get_app()\nservice = EmulatedTenantManagementService(app)\napp._services[tenant_mgt._TENANT_MGT_ATTRIBUTE] = service\n```\n\n","author":{"url":"https://github.com/Jaakkonen","@type":"Person","name":"Jaakkonen"},"datePublished":"2025-09-08T12:16:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/910/firebase-admin-python/issues/910"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7799ab83-f246-75cd-86f6-63cf10e3883a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B146:7B261:56CC54:6F0272:698E79FD |
| html-safe-nonce | 7194e456b242c49456283d058b59fe0ee7a44b1e88d0d4079584077f6cb8a1f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTQ2OjdCMjYxOjU2Q0M1NDo2RjAyNzI6Njk4RTc5RkQiLCJ2aXNpdG9yX2lkIjoiNDIyNjQ5NTgyNTMzMTUxNzk0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f56ba33954f5eed2e797ec1bb44c637495712cf8028349aeb7399e6ad0d74548 |
| hovercard-subject-tag | issue:3393954472 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/firebase/firebase-admin-python/910/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5087d09c519c66f169aee05f7091865b7f410674fb716ecc3986d929ff18a745/firebase/firebase-admin-python/issues/910 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5087d09c519c66f169aee05f7091865b7f410674fb716ecc3986d929ff18a745/firebase/firebase-admin-python/issues/910 |
| og:image:alt | Is your feature request related to a problem? Please describe. Currently only the Auth client supports running against the firebase emulator when setting the FIREBASE_AUTH_EMULATOR_HOST environment... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Jaakkonen |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/firebase/firebase-admin-python git https://github.com/firebase/firebase-admin-python.git |
| octolytics-dimension-user_id | 1335026 |
| octolytics-dimension-user_login | firebase |
| octolytics-dimension-repository_id | 84979152 |
| octolytics-dimension-repository_nwo | firebase/firebase-admin-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84979152 |
| octolytics-dimension-repository_network_root_nwo | firebase/firebase-admin-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f7a12861f7011eecb14bcc4388a767d829a52dfc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width