MSAL Angular: logoutRedirect() in one app signs out another, even with different clientIds

Viktor Poliakov 20 Баллы репутации
2025-09-08T14:34:27.72+00:00

Hello!
I have multiple Angular applications hosted under the same domain but in different paths:

https://my-domen/one

https://my-domen/two

https://my-domen/three

Each application is configured with MSAL for authentication, and tokens are stored in localStorage.

Problem: When I call logout from one application, it automatically logs the user out from all the other applications as well.

What I tried:

Passing the current account to the logout method — but this did not solve the issue.

Question: How can I implement logout so that only the current application is signed out, without affecting the others?

Any help or recommendations would be greatly appreciated.

Thanks!

Azure
Azure
Платформа облачных вычислений и инфраструктура для создания, развертывания приложений и служб и управления ими с помощью глобальной сети центров обработки данных, управляемых Корпорацией Майкрософт.
Комментариев: 0 Без комментариев
Голосов: {count}

Ваш ответ

Автор вопроса может помечать ответы как принятые. Это позволяет пользователям узнать, что ответ помог решить проблему автора.