Title: `get_user_by_email` can silently return wrong result when "allow multiple accounts with the same email address" is set · Issue #843 · firebase/firebase-admin-python · GitHub
Open Graph Title: `get_user_by_email` can silently return wrong result when "allow multiple accounts with the same email address" is set · Issue #843 · firebase/firebase-admin-python
X Title: `get_user_by_email` can silently return wrong result when "allow multiple accounts with the same email address" is set · Issue #843 · firebase/firebase-admin-python
Description: Describe your environment Operating System version: macOS 15.2 Firebase SDK version: 6.6.0 Firebase Product: auth Python version: 3.12 Pip version: uv 0.5.11 Describe the problem I'm worried that the get_user_by_email function misleading...
Open Graph Description: Describe your environment Operating System version: macOS 15.2 Firebase SDK version: 6.6.0 Firebase Product: auth Python version: 3.12 Pip version: uv 0.5.11 Describe the problem I'm worried that t...
X Description: Describe your environment Operating System version: macOS 15.2 Firebase SDK version: 6.6.0 Firebase Product: auth Python version: 3.12 Pip version: uv 0.5.11 Describe the problem I'm worried th...
Opengraph URL: https://github.com/firebase/firebase-admin-python/issues/843
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`get_user_by_email` can silently return wrong result when \"allow multiple accounts with the same email address\" is set","articleBody":"### Describe your environment\n\n * Operating System version: macOS 15.2\n * Firebase SDK version: `6.6.0`\n * Firebase Product: `auth`\n * Python version: `3.12`\n * Pip version: `uv 0.5.11`\n\n### Describe the problem\n\nI'm worried that the `get_user_by_email` function misleadingly silently skips some results.\n\nIt's typed as returning a single user record given an email address:\n\nhttps://github.com/firebase/firebase-admin-python/blob/8ba819a4175e758576f1a7cccc131c1b66d6417a/firebase_admin/_auth_client.py#L179-L194\n\nHowever, it is possible to configure Firebase to allow multiple accounts with the same email address: https://support.google.com/firebase/answer/9134820\n\nIt looks like the implementation takes just the first user record if more than one matches the provided email:\n\nhttps://github.com/firebase/firebase-admin-python/blob/8ba819a4175e758576f1a7cccc131c1b66d6417a/firebase_admin/_user_mgt.py#L583-L602\n\nI'd suggest replacing it with a `get_users_by_email` that returns a collections of records, to avoid misleading programmers unfamiliar with the \"allow multiple accounts with the same email address\" option.","author":{"url":"https://github.com/kkom","@type":"Person","name":"kkom"},"datePublished":"2024-12-23T11:24:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/843/firebase-admin-python/issues/843"}
| 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:e7007e5e-640b-390b-6963-a8083dcaf07e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D214:16DABE:562855:702BBF:6990712E |
| html-safe-nonce | a2426651b8b2fba6f544ceea7c502e103af92f7561c0f151fc33500fd20ffbbf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjE0OjE2REFCRTo1NjI4NTU6NzAyQkJGOjY5OTA3MTJFIiwidmlzaXRvcl9pZCI6IjUzNzY1ODU1MjkxNTEyMjIwNjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f89d45f277cc4b70f3354bae005e0c5e66b91ec40c419beafc07e1688522fe3d |
| hovercard-subject-tag | issue:2755839661 |
| 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/843/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6774d91b914af691a1ff8f7582d06d1c4c58710778b6033361f50a4e6d33038e/firebase/firebase-admin-python/issues/843 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6774d91b914af691a1ff8f7582d06d1c4c58710778b6033361f50a4e6d33038e/firebase/firebase-admin-python/issues/843 |
| og:image:alt | Describe your environment Operating System version: macOS 15.2 Firebase SDK version: 6.6.0 Firebase Product: auth Python version: 3.12 Pip version: uv 0.5.11 Describe the problem I'm worried that t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kkom |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| 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 | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width