riverrun / openmaize

No longer maintained - was an Authentication library for Plug-based applications in Elixir
Other
206 stars 30 forks source link

Allow custom crypto mod config #42

Closed steveklebanoff closed 8 years ago

steveklebanoff commented 8 years ago

This adds the ability to use a custom crypto module to encrypt and validate passwords, instead of being forced to use Comeonin.Pbkdf2 or Comeonin.Bcrypt.

This was added for my use case: I want to write an elixir app that allows logins from an existing django database. I need an auth system that can validate the django passwords in the database, which were not hashed using the standard Comeonin.Pbkdf2.hashpwsalt or Comeonin.Bcrypt.hashpwsalt functions.

I'm new to Elixir and very open to feedback -- especially in regards to test coverage and test code.

riverrun commented 8 years ago

Cool! Thanks for your help.

steveklebanoff commented 8 years ago

My pleasure! This is a breaking change for users who had customized their crypto_mod with an atom. Should we bump the version to indicate a breaking change?

riverrun commented 8 years ago

Just updated the hex package to 0.19 and added info in the upgrade guide.

steveklebanoff commented 8 years ago

Awesome, thanks @riverrun