| Module Info
| Add a review of Dancer-Plugin-Auth-Basic
I first looked at this module as it had the right name and thus I thought it was the right way to add authentication to a Dancer app but this package is not very good and in my opinion is not the right way to add authentication.
So, after some research, I ended up using the Plack family heritage of Dancer and I'm much happier with the result.
my $app = My::Dancer::Package->dance;
my $authenticator = \&authen_cb;
enable 'Auth::Basic', authenticator => $authenticator;
mount '/ws' => $app;
I appreciate that basic auth sends passwords in clear(ish) text to the server, but this module insists that you store the passwords in cleartext in your config too!
Maybe md5_users, bcrypt_users or something in the config?