-
Notifications
You must be signed in to change notification settings - Fork 291
Add Firebase Auth MFA info to user record #745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
612a9bb
to
323909e
Compare
Thank you @edwardmp for your contribution! Changes to the public API interface requires an internal API review. Please stay tuned.
@prameshj @pragatimodi tagging as FYI. I think we will need an API review for this. Thanks!
Hi @prameshj & @pragatimodi, do you have any time to take a look? 🙏
prameshj
commented
Jan 3, 2023
@pragatimodi Would you be able to review this? Thanks!
Also FYI @renkelvin
pragatimodi
commented
Jan 3, 2023
Thanks for making the change and contributing to this repository!
Had a few notes here -
- Looks like the MFA config has only been added as field with it's own get() function and not create/update/get functions that make calls to the backend. I don't think we can merge the PR without implementations for these.
- Please add request and response validators for MFA data.
- Please add test cases for data validation.
@pragatimodi thanks for the review!
- You mean add API to get/create/update/delete MFA info by itself? Makes sense, my own use case only covered get but I'll see if I can address that too.
- Can you clarify what you mean here? Validating the Firebase server response and validating any get request? Perhaps you can point me to an example of what you mean elsewhere in the codebase?
- You mean test cases for the validation as mentioned by point 2?
By the way, happy to help, just wondering why Google/Firebase itself hasn't target parity with the Identity platform API yet as to MFA?
@edwardmp Apologies for the delay, please find my responses below -
- Yes that's right. We want to be able to cater to all kinds of use cases and get() alone isn't enough for the master branch.
- I meant validating the request sent to the backend where the MFA config being sent for create/update is valid. For example, you can find examples here for NodeJS Admin SDK and for Go Admin SDK
- Yes and making sure that the flows work and JSON parsing is done correctly.
Hope this helps.
Thanks for contributing to the Firebase Identity platform API. We're actively working on adding MFA support to our SDKs. NodeJS and Golang SDKs already have this feature, and the rest of the SDKs are in progress. We anticipate it will be available sometime in the near future. Thanks for your interest!
Thanks for the response. Would be happy to expand my PR to include this, just confused by your final remark
We anticipate it will be available sometime in the near future
So is Google already working on this, i.e. is there no point for me to work on this right now or..?
pragatimodi
commented
Jan 26, 2023
I was clarifying a point on adding feature parity there. We welcome any contributions you may be able to make to the repository to help us accelerate the development process and glad to review any PRs!
Please note that changes to the public API must go through an internal review process, which sometimes can take a while to complete.
@pragatimodi hey, I finally have some time to improve this PR, but beforeI dive in, to avoid duplicate work, wanted to make sure Firebase/Google doesn't already have something in the works for this?
Thanks in advance
pragatimodi
commented
Oct 24, 2023
Hi @edwardmp
Thanks for your message. We're always eager to enhance our Firebase repository. Feel free to take the lead, and if you have any questions or need assistance along the way, don't hesitate to reach out. Our team hasn't had the opportunity to dive into this yet, so your contribution is much appreciated.
Dimibe
commented
Jan 20, 2025
Any updates on this PR? Would be great to have this feature!
Hi,
I noticed this SDK doesn't yet expose MFA info supported by Identity platform.
The issue ##645 also mentions this.
So I implemented it :) Let me know what you think