Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-perl
Navigation:
Lists: gentoo-perl: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-perl@g.o
From: perl <perl@...>
Subject: Can't locate Catalyst/Plugin/Authentication/Store/DBIC.pm
Date: Mon, 17 Dec 2007 18:10:51 -0800
[ I sent to the Catalyst list, but here's a copy for gentoo-perl, in
case it helps anyone, including myself '-) ]

------------------------------------------------------------------

PANIC!!!

So, the gentoo overlay installation is altered like:

dev-perl/Catalyst-Authentication-Store-DBIx-Class
!dev-perl/Catalyst-Plugin-Authentication-Store-DBIx-Class
!dev-perl/Catalyst-Plugin-Authentication-Store-DBIC

Okay... no more 'Plugin' or 'DBIC' anymore, it seems.

Then I did find this:
http://cpan.uwinnipeg.ca/htdocs/Catalyst-Authentication-Store-DBIx-Class/Catalyst/Authentication/Store/DBIx/Class.html

And, I try to change a couple of items in the configs, like so:

authentication => {
                        default_realm => 'members',
                        realms => {
                            members => {
                                credential => {
                                    class => 'Password',
                                    password_field => 'password',
                                    password_type => 'clear'
                                },
                                store => {
                                    class => 'DBIx::Class',
                                    user_class => 'MyAppDB::Users',
                                    id_field => 'user_id',
                                    role_relation => 'userroles',
                                    role_field => 'role_name',
                                }

... to mimic what is in that doco.

Caught exception in BanTrace::Controller::Login->index "The user object
Catalyst::Authentication::Store::DBIx::Class::User=HASH(0x9469e70) does
not support any known password authentication mechanism.,,

...here:

   35:     if ($username && $password) {
   36: 
   37:         # Attempt to log the user in
   38:         if ($c->login($username, $password)) {

WTF????

My application is configured exactly like the tutorial... used to be
written?? No. It still looks like: Authentication::Store::DBIC

And that Plugin:: isn't part of the installation now... this _can't_ be
okay, no?

Alright, so this is the new 'login' method, 'authenticate'?

   37:         # Attempt to log the user in
   38:         # if ($c->login($username, $password)) {
   39:         if ($c->authenticate($username, $password)) {


Caught exception in BanTrace::Controller::Login->index "authenticate
called with nonexistant realm: 'MYPASSWORD'?

Ouch! Oh, with a hashref, now:

        # if ($c->login($username, $password)) {
        if ($c->authenticate({username => $username, password =>
$password}))

So now I'm in... sort of. Other parts are broken...

if ($c->check_user_roles('admin')) {

... didn't seem to fly.

Now, I'm stuck. That method comes from, I think, ::DBIC ... what's the
new way? Fortunately, in this app, if you are not 'admin' you must be a
user... but I'd like to have my ROLE back!!!

Any help really, really appreciated. '-)

Cheers,

-- 
 |\  /|        |   |          ~ ~  
 | \/ |        |---|          `|` ?
 |    |ichael  |   |iggins    \^ /
 michael.higgins[at]evolone[dot]org
-- 
gentoo-perl@g.o mailing list


Replies:
Re: Can't locate Catalyst/Plugin/Authentication/Store/DBIC.pm
-- Michele Beltrame
Navigation:
Lists: gentoo-perl: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
The perl overlay
Next by thread:
Re: Can't locate Catalyst/Plugin/Authentication/Store/DBIC.pm
Previous by date:
Re: The perl overlay
Next by date:
Re: Can't locate Catalyst/Plugin/Authentication/Store/DBIC.pm


Updated Jun 17, 2009

Summary: Archive of the gentoo-perl mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.