No subject


Sat Aug 12 22:31:42 CEST 2006


sub set_authenticated {
    my ( $c, $user ) = @_;
    $c->user($user);
    $c->request->{user} = $user;    # compatibility kludge
    if (    $c->isa("Catalyst::Plugin::Session")
        and $c->config->{authentication}{use_session}
        and $user->supports("session") )
    {
        $c->save_user_in_session($user);
    }
    $c->NEXT::set_authenticated($user);
}


Len.



-----------------------------------------
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.

--=_alternative 0063974C852571CB_=
Content-Type: text/html;
	charset="US-ASCII"


<br>
<br>
<br>
<br><font size=2 face="sans-serif">Matt S Trout &lt;dbix-class at trout.me.uk&gt;
</font>
<br>
<br><font size=2 face="sans-serif">&gt; leonard.a.jaffe at jpmchase.com wrote:</font>
<br><font size=2 face="sans-serif">&gt; &gt; &nbsp;The problem</font>
<br><font size=2 face="sans-serif">&gt; &gt; lies inside the serialization
of the DBIC object, which means I should not</font>
<br><font size=2 face="sans-serif">&gt; &gt; be the only person seeing
this error message.</font>
<br><font size=2 face="sans-serif">&gt; </font>
<br><font size=2 face="sans-serif">&gt; Auth::Store::DBIC doesn't store
the DBIC object into the session, only the </font>
<br><font size=2 face="sans-serif">&gt; user id. If there's a DBIC object
going into the session it's almost certainly </font>
<br><font size=2 face="sans-serif">&gt; you putting it there :)</font>
<br>
<br>
<br><font size=2 face="sans-serif">The default behavior of session and
auth used together to the stick the user </font>
<br><font size=2 face="sans-serif">in the session. </font>
<br>
<br><font size=2 face="sans-serif">From C::P::Authentication.pm:</font>
<br>
<br>
<br><font size=2 face="sans-serif">sub set_authenticated {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; my ( $c, $user ) = @_;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; $c-&gt;user($user);</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; $c-&gt;request-&gt;{user}
= $user; &nbsp; &nbsp;# compatibility kludge</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; if ( &nbsp; &nbsp;$c-&gt;isa(&quot;Catalyst::Plugin::Session&quot;)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; and $c-&gt;config-&gt;{authentication}{use_session}</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; and $user-&gt;supports(&quot;session&quot;)
)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; $c-&gt;save_user_in_session($user);</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; }</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; $c-&gt;NEXT::set_authenticated($user);</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br>
<br><font size=2 face="sans-serif">Len.</font>
<br>

<HTML><BODY><P><hr size=1></P><br>
<P><br>
This transmission may contain information that is privileged,<br>
confidential, legally privileged, and/or exempt from disclosure<br>
under applicable law.  If you are not the intended recipient, you<br>
are hereby notified that any disclosure, copying, distribution, or<br>
use of the information contained herein (including any reliance<br>
thereon) is STRICTLY PROHIBITED.  Although this transmission and<br>
any attachments are believed to be free of any virus or other<br>
defect that might affect any computer system into which it is<br>
received and opened, it is the responsibility of the recipient to<br>
ensure that it is virus free and no responsibility is accepted by<br>
JPMorgan Chase & Co., its subsidiaries and affiliates, as<br>
applicable, for any loss or damage arising in any way from its use.<br>
If you received this transmission in error, please immediately<br>
contact the sender and destroy the material in its entirety,<br>
whether in electronic or hard copy format. Thank you.<br>
</P></BODY></HTML>

--=_alternative 0063974C852571CB_=--




More information about the Catalyst mailing list