Tiny example for register_auth_stores
Yuval Kogman [Mon, 28 Nov 2005 22:48:02 +0000 (22:48 +0000)]
lib/Catalyst/Plugin/Authentication/Store.pod

index 48bfbc9..7d4a563 100644 (file)
@@ -23,6 +23,12 @@ the Store plugins typically only act at setup time. They rarely do more than
 check out the configuration, and register e.g. Store::Foo::Backend, and set it
 as the default store.
 
+    __PACKAGE__->default_auth_store( $store );
+
+    # the same as
+
+    __PACKAGE__->register_auth_stores( default => $store );
+
 =head1 WORKING WITH USERS
 
 All credential verifiers should accept either a user object, or a user ID.