Skip to content

Node.js based forum software built for the modern web

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

Julian Lama2400f6baff4
diff --git a/src/routes/authentication.js b/src/routes/authentication.js
index ca7b98d870..cbc3841872 100644
--- a/src/routes/authentication.js
+++ b/src/routes/authentication.js
@@ -104,7 +104,7 @@ Auth.reloadRoutes = async function (params) {
prompt: strategy.prompt || undefined,
};
- if (strategy.checkState) {
+ if (strategy.checkState !== false) {
req.session.ssoState = req.csrfToken && req.csrfToken();
opts.state = req.session.ssoState;
}