Skip to content

Receiving 401 Unauthorized after auth token expiration #102

@cnd5041

Description

@cnd5041

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions