Recently, I needed to integrate Auth0 with Power Pages. The integration itself was relatively simple, but the next requirement posed a challenge.
The goal was to ensure that when users sign out of Power Pages and then attempt to log back in, they would be prompted to enter their login credentials. Normally, with SSO, logging out of Power Pages doesn't end the SSO session, as cookies still contain the user’s session information. This means users are automatically logged back in.
To address this, the solution involves redirecting to the Auth0 application, which will clear the session and log the user out.
Please see the screenshot below.
Here,
https://GDRTEST.au.auth0.com is the Auth0 Domain
https://GDRPortal.powerappsportals.com is the redirect url, after log off, the user will be taken to this page.
clnoTtKtywUODM8hbSTN7fSxQmoiKklM is the client ID from Auth0 application.
Another setting that needs adjustment is in the Auth0 application. We must add our redirect URL to the allowed Logout URLs. Please see the screenshot below.
Comments