Closed mdedonno1337 closed 5 years ago
Good observation, @mdedonno1337! I think this looks mostly good. What do you think about leaving the arguments in the constructor the same, but just raising if any of the required parameters are missing? I don't think there should be any major API breaking changes with this fix, but I could be missing something. Thanks again for your contributions!
Not sur that all values have to be checked while creating the WebAuthnUser object, since not necessary mendatory depending upon the usage of the object. The a16563f commit deal with this part.
Thanks for the updates! When you get a chance, do you mind addressing the changes I requested?
Done (I think). Consider a squash-merge instead of a normal-merge if you consider it more useful.
Sorry for all the back-and-forth, @mdedonno1337! If you remove the changes to the method signature for the WebAuthnUser
constructor we should be good to go. Thanks again!
Useless PR finally I think (see the comment https://github.com/duo-labs/py_webauthn/pull/38#discussion_r287563733 ). Let me know when a refactoring process will be mendatory to add variables to the constructor, I will do it with pleasure.
Hey @mdedonno1337,
I still think this PR has value, even without the changes to the constructor. It will raise
if necessary inputs are not supplied to the WebAuthnUser
class. If you'd rather wait until I revisit making changes to the constructor, that's totally understandable. Thanks again for your contribution!
It's a pleasure to contribute to a usefull project ! A bit difficult for my first real contribution to opensource via PR because of the back-and-forth, but I'm very happy to contribute.
Can you squash-merge, or I have to rebase ? The git-log will be a mess if not squashed ...
Thanks so much for your contribution, @mdedonno1337! Your PR is squashed and merged now. :)
I was asking myself why all arguments in the WebAuthnUser class are mendatory, but not always used. I had this code working on production:
This is not a definitive PR, but a snippet to discuss (of course backwards-compatible ; need some checks in the library)
What do you think ?
Edit: Same comment with this code: