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

Reply via email to