<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I hope I'm not oversimplifying, but can't one set<br>
<font face="Courier New, Courier, monospace">session user =>
$username;<br>
</font>when it is validated and refer to it as<br>
<font face="Courier New, Courier, monospace">session('user')<br>
</font>later?<br>
<br>
--john<br>
<blockquote
cite="mid:FFB84125-2194-493A-9F83-1E16BE28F71A@etr-usa.com"
type="cite">
<blockquote type="cite">
<pre wrap="">
On Feb 12, 2016, at 2:54 PM, Nikos Vaggalis <a class="moz-txt-link-rfc2396E" href="mailto:nikos.vaggalis@gmail.com"><nikos.vaggalis@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
those variables get filled with the values you enter in the Authentication dialogue
</pre>
</blockquote>
<pre wrap="">
I think he’s asking how you get those values from *Dancer* rather than from Plack. Or at least, how you get at Plack stuff underneath Dancer, say, from a route handler.
</pre>
</blockquote>
<pre wrap="">
To clarify, the OP couched this issue in terms of HTTP Basic Authentication, but it’s broader than that. The same question would apply if you used, say, Microsoft’s SSPI mechanism to allow single-sign-on to your web app:
<a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/1003751/">http://stackoverflow.com/questions/1003751/</a>
Once the user is logged in, you still need the user name provided by the browser to tag database records for ownership by that user, to look up prior actions by that user, etc.
_______________________________________________
dancer-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a>
<a class="moz-txt-link-freetext" href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
John J. McDermott, CPLP
Learning and Performance Consultant
jjm at jkintl.com 575/737-8556
Check out my security blog posts
Add an A for the Arts To STEM and get STEAM and a strong engine to move forward. </pre>
</body>
</html>