Hi Himanshi ,
In the azure SSO setting of your app , you will have to give logout uri then session will be killed
Hope it helps!
I would suggest using the browser's Navigate API. You could add a HTML snippet to your page layout with something like this to handle navigation events and signing out a user.
navigation.addEventListener("navigate", (event) => {
//check if user navigates back to login page
const url = new URL(event.destination.url).toString();
if (url.includes("/login.html")) {
// sign out user
mx.logout();
};
});
Hi Himanshi,
If you wanna logout user when user reaches into login.html file then you can go to theme folder and inside login.html file
inside head tag you can apply script like this for window.location, i have given redirect link for logout in sso based application
and if you are using sso based application , you don't need to disbale back button because after logout ,to access any previous page it will again ask for authentication
Hope it helps!
Hi,
This logout URL works for Azure AD based SSO, are you using some other authentication mechanism?
could you share your application link once