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: "*" });
}
}