File: AuthTestApp3.pm

package info (click to toggle)
libcatalyst-authentication-credential-authen-simple-perl 0.09-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 228 kB
  • ctags: 26
  • sloc: perl: 305; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 637 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package AuthTestApp3;

use Catalyst qw/Authentication/;

__PACKAGE__->config->{'Plugin::Authentication'} = {
  'realms' => {
    'default' => {
      'store' => {
        'class' => 'Minimal',
        'users' => {
          bob => { name => "Bob Smith" },
          john => { name => "John Smith" }
	}
      },
      'credential' => {
        'class' => 'Authen::Simple',
        'authen' => [
          {
            'class' => 'Stub'
          },
          {
            'class' => 'OnlyOne',
            'args' => {
              'pass' => 'uniquepass'
            }
          }
        ],
      }
    }
  }
};

__PACKAGE__->setup();