fix: accidental unnecessarily strict conditional that effectively rendered SSO state checking opt-in instead of opt-out

v1.18.x
Julian Lam 4 years ago
parent 520050da19
commit a2400f6baf

@ -104,7 +104,7 @@ Auth.reloadRoutes = async function (params) {
prompt: strategy.prompt || undefined, prompt: strategy.prompt || undefined,
}; };
if (strategy.checkState) { if (strategy.checkState !== false) {
req.session.ssoState = req.csrfToken && req.csrfToken(); req.session.ssoState = req.csrfToken && req.csrfToken();
opts.state = req.session.ssoState; opts.state = req.session.ssoState;
} }

Loading…
Cancel
Save