Hello,
I am implementing authentication in Power Pages using Microsoft Entra ID and have a question regarding the logout and re-login behavior.
Current behavior
The current login flow works as follows:
-
User accesses the Power Pages site
-
User clicks a custom login button created in Power Pages
-
User selects Microsoft Entra ID as the login provider
-
Microsoft account sign-in page is displayed
-
User enters ID and password and clicks Sign in
-
At the “Stay signed in?” prompt, the user selects No
-
User is successfully logged in and redirected to the Power Pages home page
-
User clicks the logout button on the site
-
When the user clicks Microsoft Entra ID again to log in, the user is signed in immediately without seeing the Microsoft login page
If the browser cookies are manually cleared after step 8, the login flow behaves as expected and steps 4–7 are shown again.
Expected behavior
Our expected behavior is:
-
Even if the user does not manually clear browser cookies
-
When the user clicks the logout button in Power Pages
-
The next login attempt should always show the Microsoft account sign-in page (ID/password prompt)
Question
It seems that the Microsoft Entra ID SSO session or browser authentication cookies are still valid after logging out of Power Pages.
-
Is there a way to fully sign out from the Microsoft Entra ID session when logging out of Power Pages?
-
Or is there a configuration to force re-authentication and always show the login prompt on the next login?
Any guidance, recommended configuration, or best practices would be greatly appreciated.
Thank you.