Open dwinston opened 2 days ago
@dwinston - I think we could do something much simpler, and simply allow the admin an endpoint to update the user. I am prototyping an implementation for this.
OK - I made a branch that implements an update_user endpoint:
See: https://github.com/microbiomedata/nmdc-runtime/compare/main...update_password
Couple of side notes
@retry
decorator on the get_token
function - wasn't clear why this was there and if this was related to the skip.
FWIW tests are passing for me locally.
The Pain
Currently, API users without administrative privileges cannot change/reset/update their passwords (for use in password-based auth). For an administrator to reset a user's password, they currently
The Dream
As an API user, instead of asking an admin to manually provide me with a new password, I want to reset my password through email/orcid verification by myself so that I have a new password to use (and securely save) within a few minutes.
The Fix (i.e., Acceptance Criteria)
Alternatives Status quo.
<joke>
How often do users lose their passwords, anyway?</joke>
Additional context Private communication with @shreddd via NMDC Slack raising this issue.