SSO SignOut Not Working

0
Hello Everyone,I am using app url/sso/logout to logout from my application. Im able to logout from my local server without any issue. But when I'm trying to achieve same on cloud, im not logged out I instead keep going back to index.html when I hit the button, which calls a nanoflow to redirect to this URL. If i type this url in the browser it logs out the application completely. Am I missing any network permissions. Please advice Thank You
asked
2 answers
0

This behavior is expected on Mendix Cloud when using SAML/SSO. Calling /sso/logout from a nanoflow does not always trigger a full browser logout, which is why the user may be redirected back to index.html. A reliable workaround is to perform a hard redirect to <app-url>/SSO/logout.


Kindly check the thread, which explains a practical workaround implementation (e.g., using a URL redirect / dedicated logout button) that should help in your case.


answered
0

hi,



This is expected behavior on Mendix Cloud and not a permissions issue.

When you trigger /<app-url>/sso/logout via a nanoflow redirect, the browser does not fully clear the session on Mendix Cloud due to SSO + SameSite cookie handling. As a result, the platform redirects you back to index.html instead of logging out completely.

That’s why:

  • Typing the URL manually in the browser works
  • Redirecting to it from a nanoflow does not

Correct way to handle logout on Mendix Cloud

Use one of these supported approaches:

  1. Use the built-in Logout action
    • Call the Logout action in a microflow
    • Then redirect to a public/login page
  2. Use an Open Link (not nanoflow redirect)
    • Configure the button to use Open link
    • URL: /sso/logout
    • Open in Same window

Why this works

Mendix Cloud requires the logout request to be handled as a full browser navigation, not a client-side redirect, so cookies are cleared correctly.


answered