[Catalyst] Catalyst Roles With ACL

Blaine Everingham grandmasterblaine at hotmail.com
Tue Aug 14 19:13:37 GMT 2012


Sorry I missed that. I suppose it's possible that this call is the issue.. =
But it was working just fine before I tried to add ACL.
sub authenticateOpenid :Path('openid') :Args(0) {       my($self, $c) =3D @=
_;
 $c->log->debug( "authenticateOpenID" );	=

      if ( $c->authenticate({}, 'openid') ){ 		  ## Check if the user's pro=
file already exists		  ## If not create a new one.		  if ( !$c->forward('us=
erVerify') ){		  			  	$c->forward("/login/userCreate" );		  }             =
     $c->res->redirect( $c->uri_for('/') );      } else {          # Show L=
ogin Form          $c->stash('error' =3D> "Sorry your login failed.");     =
     $c->res->redirect( $c->uri_for('/login') );      } }

> Subject: Re: [Catalyst] Catalyst Roles With ACL
> From: bobtfish at bobtfish.net
> Date: Tue, 14 Aug 2012 19:12:23 +0100
> To: catalyst at lists.scsys.co.uk
> =

> =

> On 14 Aug 2012, at 18:12, Blaine Everingham wrote:
> > =

> > When I try and run my program I get =

> > Failed to load user data.  You passed [ARRAY(0x39a8964)] to authenticat=
e() but your user source (MyApp::User) only has these columns: [id,alias,na=
me_first,name_last,email]   Check your authenticate() call.
> > =

> > Any idea on how I can load the roles?
> =

> =

> You didn't show us the ->authenticate() call in your code that the error =
message tells you is the problem.
> =

> Before doing anything else, I'd like to see that call, to check it isn't =
the source of the problem ;_)
> =

> Cheers
> t0m
> =

> =

> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.u=
k/
> Dev site: http://dev.catalyst.perl.org/
 		 	   		  =

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20120814/aec9d=
b64/attachment.htm


More information about the Catalyst mailing list