This is a simple authentication provider which authenticates based on a list of
usernames, passwords (crypted, preferably - see below) and role specifications
provided in the realm definition in your apps config file.
This class is primarily intended as an example of what an authentication
provider class should do; however, if you just want simple user authentication
with user details stored in your apps config file, it may well suit your needs.
See Dancer::Plugin::Auth::Extensible for details on how to use the
In your apps config.yml:
- user: dave
- user: bob
As you can see, you can define the usernames, passwords (please use crypted
passwords, RFC2307-style, not plain text (although plain text *is* supported,
but really not a good idea), and the roles for each user (if youre
not planning to use roles, omit the roles section from each user entirely).