Intergration of Azure AD authentication to Sentry

So, we have this problem with our Sentry authentication. We use Azure AD as our authentication method, so that our employees can login easily but when they try to logout from this app it won’t sign them out. They stay signed in until they either delete cookies or restart the browser. The interesting part is that when they sign-in to the Sentry they can sign-in to Microsoft apps (e.g., Office 365) as well. However, when they sign out of the Microsoft app or page, now it will sign them out for real from the Sentry as well. The problem probably is that when signing out of the App, it probably doesn’t clear the Microsoft cookies. Does anyone have a similar problem or some solution for this?

We tried those solutions but nothing worked or at least I don’t know how to integrate them into our system: