How to logout from Bluemix Single Sign On service?

754 views Asked by At

I am using Single Sign On Cloud Directory service in Bluemix from Node.js

After reading the docs and browsing some files like authenticator.js from the downloaded necessary module I haven't found any API documentation or function to logout.

Is it available such function? Thanks.

1

There are 1 answers

5
Jeff Sloyer On

If you are using Node.js you can just simply destroy the session. The call to request.logout() will destroy the session.

app.get("/logout", function (request, response) {
    request.logout();
    response.redirect("/");
});