Dancer2-Plugin-Auth-Extensible
view release on metacpan or search on metacpan
0.711 Thu 29 Aug 10:28:00 BST 2024
[BUG FIXES]
* Ensure uninit warnings not emitted
0.710 Sat 15 May 08:02:00 BST 2021
[BUG FIXES]
* Add Test::Fatal to list of dependencies (thanks yldr)
* Fix config for test (thanks Nick Tonkin)
0.709 Sun 19 Apr 17:44:00 BST 2020
[BUG FIXES]
* Update tests to match RFC 7231 behavior of Dancer2 (thanks Ruth Holloway)
0.708 Fri 26 Apr 09:47:00 GMT 2019
"build" : {
"requires" : {
"DateTime" : "0",
"File::ShareDir::Install" : "0.06",
"HTTP::Cookies" : "0",
"HTTP::Request::Common" : "0",
"Path::Tiny" : "0.016",
"Plack::Test" : "0",
"Test::Deep" : "0.114",
"Test::Exception" : "0",
"Test::Fatal" : "0",
"Test::MockDateTime" : "0",
"Test::More" : "0",
"Test::Warnings" : "0"
}
},
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : "0",
"File::ShareDir::Install" : "0.06"
}
DateTime: '0'
File::ShareDir::Install: '0.06'
HTTP::Cookies: '0'
HTTP::Request::Common: '0'
Mail::Message: '0'
Mail::Transport: '0'
Path::Tiny: '0.016'
Plack::Test: '0'
Test::Deep: '0.114'
Test::Exception: '0'
Test::Fatal: '0'
Test::MockDateTime: '0'
Test::More: '0'
Test::Warnings: '0'
configure_requires:
ExtUtils::MakeMaker: '0'
File::ShareDir::Install: '0.06'
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 7.70, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
Makefile.PL view on Meta::CPAN
'File::ShareDir::Install' => '0.06',
'HTTP::Cookies' => 0,
'HTTP::Request::Common' => 0,
'Path::Tiny' => '0.016',
'Plack::Test' => 0,
'Test::Deep' => '0.114', # noneof
'Test::Exception' => 0,
'Test::MockDateTime' => 0,
'Test::More' => 0,
'Test::Warnings' => 0,
'Test::Fatal' => 0
},
PREREQ_PM => {
'Carp' => 0,
'Dancer2' => '0.204000',
'Dancer2::Core::Types' => 0,
'Dancer2::FileUtils' => 0,
'Dancer2::Plugin' => 0,
'Dancer2::Template::Tiny' => 0,
'File::Share' => 0,
'Module::Runtime' => 0,
lib/Dancer2/Plugin/Auth/Extensible/Test/App.pm view on Meta::CPAN
Dancer2::Plugin::Auth::Extensible::Test::App - Dancer2 app for testing providers
=cut
our $VERSION = '0.714';
use strict;
use warnings;
use Test::More;
use Test::Deep qw(bag cmp_deeply);
use Test::Fatal;
use Dancer2 appname => 'TestApp';
use Dancer2::Plugin::Auth::Extensible;
use Scalar::Util qw(blessed);
use YAML ();
set session => 'simple';
set logger => 'capture';
set log => 'debug';
set show_errors => 1;
t/disable_roles.t view on Meta::CPAN
use Test::More;
use Test::Fatal;
use Plack::Test;
use HTTP::Request::Common;
BEGIN {
$ENV{DANCER_CONFDIR} = 't/lib';
$ENV{DANCER_ENVIRONMENT} = 'disable-roles';
}
like exception {
package RequireAllRoles;
t/exploding-provider.t view on Meta::CPAN
BEGIN {
$ENV{DANCER_CONFDIR} = 't/lib';
$ENV{DANCER_ENVIRONMENT} = 'exploding';
}
{
package TestApp;
use Test::More;
use Test::Deep;
use Test::Fatal;
use Dancer2;
use Dancer2::Plugin::Auth::Extensible;
set logger => 'capture';
my $plugin = app->with_plugin('Auth::Extensible');
my $trap = dancer_app->logger_engine->trapper;
my $logs;
is exception {
$plugin->authenticate_user( 'fred', 'password', 'config1' );
t/no-provider-configured.t view on Meta::CPAN
use lib 't/lib';
BEGIN {
$ENV{DANCER_CONFDIR} = 't/lib';
$ENV{DANCER_ENVIRONMENT} = 'no-provider-configured';
}
{
package TestApp;
use Test::More;
use Test::Fatal;
use Dancer2;
like exception {
require Dancer2::Plugin::Auth::Extensible;
Dancer2::Plugin::Auth::Extensible->import;
},
qr/No provider configured - consult documentation/,
"got exception No provider configured - consult documentation...";
}
done_testing;
t/one-realm.t view on Meta::CPAN
BEGIN {
$ENV{DANCER_CONFDIR} = 't/lib';
$ENV{DANCER_ENVIRONMENT} = 'one-realm';
}
{
package TestApp;
use Test::More;
use Test::Deep;
use Test::Fatal;
use Dancer2;
use Dancer2::Plugin::Auth::Extensible;
my $plugin = app->with_plugin('Auth::Extensible');
is exception {
$plugin->create_user( username => 'one-realm1', password => 'pwd1' );
}, undef, "No need to pass realm to create_user since we have only one.";
post '/create_user' => sub {
( run in 1.044 second using v1.01-cache-2.11-cpan-54e63673c56 )