[dancer-users] Tiny problem with sessions in a Dancer2 plugin
Gideon D'souza
gidisrael at gmail.com
Thu Sep 26 19:21:19 BST 2013
I would really really appreciate some help on this tiny problem I'm having.
I'm porting my Github Authentication plugin into Dancer2, but for the life
of my I can't get it to work and I've been stuck for days now on this.
*Everything works*, but it's just the the session value that is set from
within the plugin is undef inside the application.
Here is the code narrowed down, the Plugin:
https://gist.github.com/gideondsouza/6718246#file-dancer2_plugin_gh_auth-pl-L86
I set the session there, all works great.
Now, the session is undef here in the app:
https://gist.github.com/gideondsouza/6718224#file-test_github_plugin-pl-L14
Is it because I'm calling the init() method here and this method setups up
a route?
https://gist.github.com/gideondsouza/6718224#file-test_github_plugin-pl-L9
Is there a way to add routes inside a plugin, on init or something like
that? Or perhaps it's something else I've missed?
Any reply or pointers appreciated.
Gideon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20130926/6d0b9573/attachment.html>
More information about the dancer-users
mailing list