Ark-Plugin-Authentication
view release on metacpan or search on metacpan
# NAME
Ark::Plugin::Authentication - Ark plugins for authentications
# SYNOPSIS
use Ark;
use_plugins qw/
Session
Session::State::Cookie
Session::Store::Memory
Authentication
Authentication::Credential::Password
Authentication::Store::Minimal
/;
conf 'Plugin::Authentication::Store::Minimal' => {
users => {
user1 => { username => 'user1', password => 'pass1', },
user2 => { username => 'user2', password => 'pass2', },
lib/Ark/Plugin/Authentication.pm view on Meta::CPAN
=head1 NAME
Ark::Plugin::Authentication - Ark plugins for authentications
=head1 SYNOPSIS
use Ark;
use_plugins qw/
Session
Session::State::Cookie
Session::Store::Memory
Authentication
Authentication::Credential::Password
Authentication::Store::Minimal
/;
conf 'Plugin::Authentication::Store::Minimal' => {
users => {
user1 => { username => 'user1', password => 'pass1', },
user2 => { username => 'user2', password => 'pass2', },
t/plugin_authentication.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
{
package T1;
use Ark;
use_plugins qw/
Session
Session::State::Cookie
Session::Store::Memory
Authentication
Authentication::Credential::Password
Authentication::Store::Minimal
/;
conf 'Plugin::Authentication::Store::Minimal' => {
users => {
user1 => { username => 'user1', password => 'pass1', },
t/plugin_authentication_cred_password.t view on Meta::CPAN
use Test::More;
{
package T1;
use Ark;
use Digest::SHA1 'sha1_hex';
use_plugins qw/
Session
Session::State::Cookie
Session::Store::Memory
Authentication
Authentication::Credential::Password
Authentication::Store::Minimal
/;
conf 'Plugin::Authentication::Credential::Password' => {
password_type => 'hashed',
password_pre_salt => 'pre',
t/plugin_authentication_store_dbixclass.t view on Meta::CPAN
use base qw/DBIx::Class::Schema::Loader/;
__PACKAGE__->loader_options;
}
{
package T1;
use Ark;
use_plugins qw/
Session
Session::State::Cookie
Session::Store::Memory
Authentication
Authentication::Credential::Password
Authentication::Store::DBIx::Class
/;
package T1::Model::DBIC;
use Ark 'Model::Adaptor';
t/plugin_authentication_store_model.t view on Meta::CPAN
$self->users->{$id};
}
}
{
package T1;
use Ark;
use_plugins qw/
Session
Session::State::Cookie
Session::Store::Memory
Authentication
Authentication::Credential::Password
Authentication::Store::Model
/;
conf 'Plugin::Authentication::Store::Model' => {
model => 'UserDB',
};
( run in 0.403 second using v1.01-cache-2.11-cpan-e9199f4ba4c )