Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting access to this app context from filters #124

Open
alduro opened this issue Dec 21, 2013 · 0 comments
Open

Getting access to this app context from filters #124

alduro opened this issue Dec 21, 2013 · 0 comments

Comments

@alduro
Copy link

alduro commented Dec 21, 2013

Is this possible ? how ? this.app ? I have this initializer and I need to access to this.rs from and ensure_authenticated filter.

var conf = require('../../conf.js')
  , RedisSessions = require('redis-sessions');

module.exports = function() {

  this.rs = new RedisSessions();
  this.rsapp = "control"; // App name to identify sessions

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant