-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Labels
Description
Hi, I am using the server code, and have login/authentication working with Shared UAA, it's hooked up to redis and everything and running in CF/Predix.
The issue I am seeing is that when I go to the site the next day, I am only receiving a 401. I'm assuming the auth token is expired, but it does not seem to be redirection.
I have the entire app secured via this code in app.js:
//Use this route to make the entire app secure. This forces login for any path in the entire app.
app.use('/',
passport.authenticate('main', {
noredirect: false //Don't redirect a user to the authentication page, just show an error
}),
express.static(relRootPath)
);
I am wondering if there is something wrong with the passport configuration?
Reactions are currently unavailable