I am working on an azure app services application using built in auth. I am trying to implement an auto logout due to inactivity feature, so when the user steps away from their browser the app should log out.
Following the documentation of how to sign out of a session I would expect when I redirect to /.auth/logout
it should
- Clears authentication cookies from the current session.
- Deletes the current user’s tokens from the token store.
- For Microsoft Entra and Google, performs a server-side sign-out on the identity provider.
… however, instead of doing the above, the user is presented with an account chooser screen to ask which account to sign out of. The problem is that there is no user there to make the choice, so the browser hangs on that screen, and when visiting the application the user is still authenticated.
Does anyone know how to programatically log out of azure app services apps without requiring user interaction?
5