volatiletech / authboss

The boss of http auth.
MIT License
3.79k stars 204 forks source link

Feature/configurable hashing and encoding #336

Closed larrycinnabar closed 9 months ago

larrycinnabar commented 2 years ago

Problem

Password hashing :hash:

Password hashing process is hard-coded and can't be modified in any kind. There are cases where we do need control on how password is hashed:

Confirming/Recovering tokens :envelope:

Reasons for unhardcoding this part:

Problematic part :red_circle: :

authboss.go has a public helper function VerifyPassword, that now works only if we use default Hasher. a todo item is left there in comments, explaining the issue

Fixes #319, #288

aarondl commented 9 months ago

This has been updated by Stephenafamo and it's been merged! Thank you for your contribution. See #355