1 package AuthRealmTestAppProgressive;
6 ### using A::Store::minimal with new style realms
7 ### makes the app blow up, since c::p::a::s::minimal
8 ### isa c:a::s::minimal, and it's compat setup() gets
9 ### run, with an unexpected config has (realms on top,
10 ### not users). This tests makes sure the app no longer
11 ### blows up when this happens.
14 Authentication::Store::Minimal
19 bob => { password => "s00p3r" }
22 sally => { password => "s00p3r" }
26 # Matches user above so we can test against a detach and confirm
27 # it gets skipped and auths in 'members' realm
28 our $detach_test_info = {
30 'password' => 's00p3r',
31 'realm_to_pass' => 'members',
34 __PACKAGE__->config('Plugin::Authentication' => {
35 default_realm => 'progressive',
37 class => 'Progressive',
38 realms => [ 'alwaysdetach', 'other', 'members' ],
42 class => 'AlwaysDetach',
52 password_field => 'password',
53 password_type => 'clear'
57 users => $members{other},
63 password_field => 'password',
64 password_type => 'clear'
68 users => $members{members},