[Catalyst-commits] r11877 - in Catalyst-Model-DBIC-Schema/trunk: . lib/Catalyst/Model/DBIC

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Tue Nov 17 22:11:25 GMT 2009


Author: t0m
Date: 2009-11-17 22:11:25 +0000 (Tue, 17 Nov 2009)
New Revision: 11877

Modified:
   Catalyst-Model-DBIC-Schema/trunk/Changes
   Catalyst-Model-DBIC-Schema/trunk/lib/Catalyst/Model/DBIC/Schema.pm
Log:
Tidy up Plugin::Auth section for current versions and best practices. Changelog

Modified: Catalyst-Model-DBIC-Schema/trunk/Changes
===================================================================
--- Catalyst-Model-DBIC-Schema/trunk/Changes	2009-11-17 22:09:51 UTC (rev 11876)
+++ Catalyst-Model-DBIC-Schema/trunk/Changes	2009-11-17 22:11:25 UTC (rev 11877)
@@ -1,5 +1,10 @@
 Revision history for Perl extension Catalyst::Model::DBIC::Schema
 
+        - Move documentation on setting up authentication into its own section
+          for clarity.
+        - Other misc documentation enhancements to make the docs more clear
+          about the important things to know.
+        - Convert Authentication Plugin configuration example to new style.
 
 0.30  Sun Oct 18 01:35:36 EDT 2009
         - change no sources error to a warning (with a way to turn it off)

Modified: Catalyst-Model-DBIC-Schema/trunk/lib/Catalyst/Model/DBIC/Schema.pm
===================================================================
--- Catalyst-Model-DBIC-Schema/trunk/lib/Catalyst/Model/DBIC/Schema.pm	2009-11-17 22:09:51 UTC (rev 11876)
+++ Catalyst-Model-DBIC-Schema/trunk/lib/Catalyst/Model/DBIC/Schema.pm	2009-11-17 22:11:25 UTC (rev 11877)
@@ -639,26 +639,24 @@
 
   ...
 
-  __PACKAGE__->config->{authentication} = 
-                {  
+  __PACKAGE__->config('Plugin::Authentication' =>
+                {
                     default_realm => 'members',
-                    realms => {
-                        members => {
-                            credential => {
-                                class => 'Password',
-                                password_field => 'password',
-                                password_type => 'hashed'
-                                password_hash_type => 'SHA-256'
-                            },
-                            store => {
-                                class => 'DBIx::Class',
-                                user_model => 'DB::User',
-                                role_relation => 'roles',
-                                role_field => 'rolename',                   
-                            }
+                    members => {
+                        credential => {
+                            class => 'Password',
+                            password_field => 'password',
+                            password_type => 'hashed'
+                            password_hash_type => 'SHA-256'
+                        },
+                        store => {
+                            class => 'DBIx::Class',
+                            user_model => 'DB::User',
+                            role_relation => 'roles',
+                            role_field => 'rolename',
                         }
                     }
-                };
+                });
 
 =head1 SEE ALSO
 




More information about the Catalyst-commits mailing list