NAME
Dancer2::Plugin::Auth::Extensible::Provider::Base - base class for authentication providers
DESCRIPTION
Base class for authentication providers. Provides a constructor which handles receiving the realm settings and returning an instance of the provider.
Also provides secure password matching which automatically handles crypted passwords via Crypt::SaltedHash.
Finally, provides the methods which providers must override with their implementation, which will die if they are not overridden.
METHODS SUPPLIED BY BASE PROVIDER
new
realm_settings
Accessor for realm settings.
realm_dsl
Accessor for realm DSL object.
match_password($given, $correct)
Matches $given
password with the $correct
one.
encrypt_password($password, $algorithm)
Encrypts password $password
with $algorithm
which defaults to SHA-1.