-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OIDC Back-Channel Logout #484
Conversation
app.get('/', async (req, res) => { | ||
if (req.oidc.isAuthenticated()) { | ||
res.send(`hello ${req.oidc.user.sub} <a href="/logout">logout</a>`); | ||
} else { | ||
res.send('<a href="/login">login</a>'); | ||
} | ||
}); |
Check failure
Code scanning / CodeQL
Missing rate limiting
app.get('/', async (req, res) => { | ||
if (req.oidc.isAuthenticated()) { | ||
res.send(`hello ${req.oidc.user.sub} <a href="/logout">logout</a>`); | ||
} else { | ||
res.send('<a href="/login">login</a>'); | ||
} | ||
}); |
Check failure
Code scanning / CodeQL
Missing rate limiting
app.get('/', async (req, res) => { | ||
if (req.oidc.isAuthenticated()) { | ||
res.send(`hello ${req.oidc.user.sub} <a href="/logout">logout</a>`); | ||
} else { | ||
res.send('<a href="/login">login</a>'); | ||
} | ||
}); |
Check failure
Code scanning / CodeQL
Missing rate limiting
router.use(async (req, res, next) => { | ||
if (!req.oidc.isAuthenticated()) { | ||
next(); | ||
return; | ||
} | ||
try { | ||
const loggedOut = await isLoggedOutFn(req, config); | ||
if (loggedOut) { | ||
req[config.session.name] = undefined; | ||
} | ||
next(); | ||
} catch (e) { | ||
next(e); | ||
} | ||
}); |
Check failure
Code scanning / CodeQL
Missing rate limiting
96f1226
to
86b21b2
Compare
86b21b2
to
791c9ab
Compare
@@ -18,6 +18,7 @@ let encryption, signing; | |||
* @see https://tools.ietf.org/html/rfc5869 | |||
* | |||
*/ | |||
/* istanbul ignore else */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't get hit since I upgraded the circleci Node image - will go back and setup the CI to run on multiple Node versions in another PR
Description
Add support for OpenID Connect Back-Channel Logout https://openid.net/specs/openid-connect-backchannel-1_0.html
References
fixes #383
Testing
screencast.mp4
https://github.com/auth0-samples/auth0-express-webapp-sample/tree/backchannel-logout-demo/02-Back-Channel-Logout
Checklist