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

express.get() is login in #61

Closed
hanspeter1 opened this issue Oct 4, 2014 · 1 comment
Closed

express.get() is login in #61

hanspeter1 opened this issue Oct 4, 2014 · 1 comment

Comments

@hanspeter1
Copy link

Is there possibility to do something like this?

express.get('/, function(req, res){
if(userIsLoginIn){
res.render(…);
}else{
// It do not execute this part
passport.authenticate('saml', { failureRedirect: '/', failureFlash: true }),
function(req, res) {
res.redirect('/');
}
}
});

@hanspeter1
Copy link
Author

Ok.. I find it, now I use next() from express.

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