forked from franck-eyraud/AAAforREST
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
The general idea is to send an e-mail with a URI that cannot be forged.
A. Different options could be used in the URI to make it unforgeable:
- a document UUID (if there are no other way to create one or to list them),
- a hash of the login (or e-mail) salted with a secret,
- a true asymetric digital signature,
- a one-time token (e.g. UUID) added to the user document by an admin.
B. On CouchDB's side, the password can be reset either:
- by the user itself (which would be applicable for password reset only with proxyauth set up on CouchDB and if the proxy can check the unforgeable URI itself),
- by an administrator (which means that the service that checks the unforgeable URI should know the admin credential),
- by anonymous in admin party (not applicable).
For implementation simplicity (balanced with security), I would favor solution A.4+B.2.
@franck-eyraud Do you think about other solutions or do you favor another one?