I hope I'm not oversimplifying, but can't one set
session user => $username;
when it is validated and refer to it as
session('user')
later?

--john
On Feb 12, 2016, at 2:54 PM, Nikos Vaggalis <[email protected]> wrote:
those variables get filled with the values you enter in the Authentication 
dialogue
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.
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:

   http://stackoverflow.com/questions/1003751/

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
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

--
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.

_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to