Hellooo, so I have a node.js server running in the background and I believe this is what "logs in" users (I did not write the backend).
app.use(function (req, res, next) {
var nodeSSPI = require('node-sspi');
var nodeSSPIObj = new nodeSSPI({
retrieveGroups: true,
domain: "CAMISCOM"
});
if (req.secure) {
nodeSSPIObj.authenticate(req, res, function (err) {
res.finished || next();
});
} else {
next();
}
});
The login box looks like this in chrome 61:
I've found when I do "Clear Browsing Data->Cookies and other site data" only, it will log me out. Also closing the browser and reopening logs me out.
I've tried to clear cookies in the front end, but document.cookie
is an empty string. I'm kinda lost here. How can I implement a logout feature?
Thanks!
UPDATE: I believe I should be attempting to delete req.connection.user on the backend side. Currently I have an ajax call on the front calling a router on the backend and from there I have access to req where I set it equal to null, but this isnt doing anything
Final Update: The solution for me was to have the backend do
delete req.connection.user
delete req.connection.userSid
delete req.connection.userGroups
through a router, and then after the success of that router redirect them to https://log:out@website.com