How to fully logout without redirecting to OIDC provider logout URL?

0
Hi all, I am working on implementing logout functionality in my Mendix app which uses OIDC for authentication. I currently use the mx.session.logout() method to logout from Mendix app session, but I notice that: The OIDC session (on the identity provider side) remains active. When I login again, it does not ask for email/password, and automatically logs in. This happens because the OIDC provider session is not cleared. However, in my use case, I do NOT want to redirect the user away from my app during logout. so, Is it possible to fully logout from OIDC provider without redirecting the user to the OIDC logout URL?   Regards Reemali
asked
2 answers
0

Hi Reemali,

You can create a page for the annonymous users, and use the OutOfBox mendix Logout button, this way, once the user logs out he can be redirected to the custom page and then you can decide what the user can do actions,

 

Let me know, if you face any issues.

Hope it helps!

answered
0

Hi Reemali,

 

To log out both the Mendix session and the OIDC session without redirecting the user, use mx.session.logout() to log out of Mendix, then call the OIDC provider’s logout API  to end the OIDC session silently, without redirecting the user.

answered