Logging back in after logout fails

I have login working as expected using Okta SSO, however when I log out using the Node RED panel I am unable to successfully log back in again. When I attempt to log back in the browser times out, returning a 504, and presents an auth.invalid-token error in the log.

Is there a step I am missing?

adminAuth: {
    type:"strategy",
    strategy: {
        name: "okta",
        label: "Sign in using Okta",
        icon:"fa-key",
        strategy: require("passport-okta-oauth").Strategy,
        options: {
            audience: "https://mycompany.okta.com",
            clientID: "XXXXXXX",
            clientSecret: "xxxxxx",
            scope: ["openid", "email", "profile"],
            response_type: "code",
            callbackURL: "https://mycompany.com/auth/strategy/callback",

            verify: function(accessToken, refreshToken, profile, done) {
                done(null, profile);
            }
        }
    },
    users: function(user) {
        return Promise.resolve({ username: user, permissions: "*" });
    }
}

Ended up solving it by removing .sessions.json and .config.json. I think the tokens got out of sync and it was unable to recover, but not sure. Either way, it is fixed now. :man_shrugging:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.