From: Tomas Doran Date: Tue, 21 Apr 2009 15:23:42 +0000 (+0000) Subject: Remove META.yml from svn, it's a generated file. Update svn ignore props. X-Git-Tag: v0.1005~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Authentication-Store-LDAP.git;a=commitdiff_plain;h=afb8e81c5dc4d6a63c2de270339da078baf2adb5 Remove META.yml from svn, it's a generated file. Update svn ignore props. Patch docs to not mention the deprecated authentication methods from the old authentication code. --- diff --git a/Changes b/Changes index 862d3e3..f31808c 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,7 @@ + - Change documentation which still refers to the old ::Plugin:: style + auth system to use ->authenticate instead of ->login, and not say that + you need to do things manually to have multiple stores. (t0m) + 0.1004 21 Oct 2008 - Add the ability to have the user inflated into a custom user class with the user_class option (t0m) diff --git a/META.yml b/META.yml deleted file mode 100644 index 1de3432..0000000 --- a/META.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -abstract: Authenticate Users against LDAP Directories -author: - - Adam Jacob -build_requires: - Net::LDAP::Server::Test: 0.07 - Test::More: 0 -distribution_type: module -generated_by: Module::Install version 0.68 -license: perl -meta-spec: - url: http://module-build.sourceforge.net/META-spec-v1.3.html - version: 1.3 -name: Catalyst-Authentication-Store-LDAP -no_index: - directory: - - inc - - t -requires: - Catalyst::Plugin::Authentication: 0.10003 - Net::LDAP: 0 -version: 0.1003 diff --git a/lib/Catalyst/Authentication/Store/LDAP/Backend.pm b/lib/Catalyst/Authentication/Store/LDAP/Backend.pm index 36df48b..5ae20ce 100644 --- a/lib/Catalyst/Authentication/Store/LDAP/Backend.pm +++ b/lib/Catalyst/Authentication/Store/LDAP/Backend.pm @@ -53,19 +53,11 @@ Catalyst::Authentication::Store::LDAP::Backend our $users = Catalyst::Authentication::Store::LDAP::Backend->new(\%config); - sub action : Local { - my ( $self, $c ) = @_; - - $c->login( $users->get_user( $c->req->param("login") ), - $c->req->param("password") ); - } - =head1 DESCRIPTION -You probably want L, unless -you are mixing several stores in a single app and one of them is LDAP. +You probably want L. -Otherwise, this lets you create a store manually. +Otherwise, this lets you create a store manually. See the L documentation for an explanation of the configuration options. diff --git a/lib/Catalyst/Authentication/Store/LDAP/User.pm b/lib/Catalyst/Authentication/Store/LDAP/User.pm index 22f95c5..aa40d03 100644 --- a/lib/Catalyst/Authentication/Store/LDAP/User.pm +++ b/lib/Catalyst/Authentication/Store/LDAP/User.pm @@ -8,12 +8,15 @@ Catalyst::Authentication::Store::LDAP::User =head1 SYNOPSIS -You should be creating these objects through L's "get_user" method, or just letting $c->login do +You should be creating these objects through L's "get_user" method, or just letting $c->authenticate do it for you. sub action : Local { my ( $self, $c ) = @_; - $c->login($c->req->param(username), $c->req->param(password)); + $c->authenticate({ + id => $c->req->param(username), + password => $c->req->param(password) + ); $c->log->debug($c->user->username . "is really neat!"); }