-
Notifications
You must be signed in to change notification settings - Fork 480
Closed
Description
I'm struggling to make IdP-initiated SLO work. As per several examples, I have the following routes:
app.post('/logout/callback', function(req, res) {
req.logout();
res.redirect('/');
});
app.get("/logout", function(req, res) {
if (!req.user) res.redirect("/");
console.log("initiating logout", req.log, req.user);
return passport._strategy("saml").logout(req, function(err, uri) {
return res.redirect(uri);
});
});
In addition, logoutCallbackUrl is defined as '/logout/callback'. This works fine for SP-initiated logout. Obvivously not for IdP-initiated SLO, though, as being contacted at /logout/callback will not prompt the server to reply with a logoutResponse. I've not found any examples for how to implement IdP-initiated SLO.
I've found methods in the code, that are generating the logoutResponse, which leads me to believe that IdP-initiated SLO is probably implemented. However, the beginning of the "chain of calls" to get to it is the "authenticate" functionality.
I'd greatly appreciate any help with getting this to work! Thanks!
Metadata
Metadata
Assignees
Labels
No labels