[Catalyst-commits] r7658 - / trunk/examples/NewAuthApp
trunk/examples/NewAuthApp/lib
zarquon at dev.catalyst.perl.org
zarquon at dev.catalyst.perl.org
Wed Apr 30 13:01:49 BST 2008
Author: zarquon
Date: 2008-04-30 13:01:49 +0100 (Wed, 30 Apr 2008)
New Revision: 7658
Added:
trunk/examples/NewAuthApp/newauthapp_dbic_store.conf
Modified:
/
trunk/examples/NewAuthApp/lib/NewAuthApp.pm
trunk/examples/NewAuthApp/newauthapp.conf
Log:
r13015 at zaphod: kd | 2008-04-30 22:00:40 +1000
this is the more-or-less unmodified config from the dbic auth docs, failing tests argh
Property changes on:
___________________________________________________________________
Name: svk:merge
- 1b129c88-ebf4-0310-add9-f09427935aba:/local/catalyst:4278
1c72fc7c-9ce4-42af-bf25-3bfe470ff1e8:/local/Catalyst:13014
3b9770f9-e80c-0410-a7de-cd203d167417:/local/catalyst:3514
dd8ad9ea-0304-0410-a433-df5f223e7bc0:/local/Catalyst:6909
+ 1b129c88-ebf4-0310-add9-f09427935aba:/local/catalyst:4278
1c72fc7c-9ce4-42af-bf25-3bfe470ff1e8:/local/Catalyst:13015
3b9770f9-e80c-0410-a7de-cd203d167417:/local/catalyst:3514
dd8ad9ea-0304-0410-a433-df5f223e7bc0:/local/Catalyst:6909
Modified: trunk/examples/NewAuthApp/lib/NewAuthApp.pm
===================================================================
--- trunk/examples/NewAuthApp/lib/NewAuthApp.pm 2008-04-30 12:01:27 UTC (rev 7657)
+++ trunk/examples/NewAuthApp/lib/NewAuthApp.pm 2008-04-30 12:01:49 UTC (rev 7658)
@@ -14,6 +14,25 @@
Session::Store::FastMmap
/;
+__PACKAGE__->config->{'Plugin::Authentication'} = {
+ default_realm => 'members',
+ realms => {
+ members => {
+ credential => {
+ class => 'Password',
+ password_field => 'password',
+ password_type => 'clear'
+ },
+ store => {
+ class => 'DBIx::Class',
+ user_class => 'NewAuthApp::Users',
+ role_column => 'roles'
+ }
+ }
+ }
+};
+
+
our $VERSION = '0.01';
Modified: trunk/examples/NewAuthApp/newauthapp.conf
===================================================================
--- trunk/examples/NewAuthApp/newauthapp.conf 2008-04-30 12:01:27 UTC (rev 7657)
+++ trunk/examples/NewAuthApp/newauthapp.conf 2008-04-30 12:01:49 UTC (rev 7658)
@@ -1 +1 @@
-link newauthapp_minimal_store.conf
\ No newline at end of file
+link newauthapp_dbic_store.conf
\ No newline at end of file
Added: trunk/examples/NewAuthApp/newauthapp_dbic_store.conf
===================================================================
--- trunk/examples/NewAuthApp/newauthapp_dbic_store.conf (rev 0)
+++ trunk/examples/NewAuthApp/newauthapp_dbic_store.conf 2008-04-30 12:01:49 UTC (rev 7658)
@@ -0,0 +1,19 @@
+name NewAuthApp
+admin me at example.com
+<Plugin::Authentication>
+ <realms>
+ <members>
+ <store>
+ role_column roles
+ class DBIx::Class
+ user_class NewAuthApp::Users
+ </store>
+ <credential>
+ password_field password
+ password_type clear
+ class Password
+ </credential>
+ </members>
+ </realms>
+ default_realm members
+</Plugin::Authentication>
More information about the Catalyst-commits
mailing list