Open Closed

Logging out of ANZ when you have external Azure AD configured as Auth Provider #9264


0
jtallon created

Hi there.

How do I configure the logout of the ANZ when configured with Azure AD (AAD)?

With that configured, when I click on logout, if does logout of the AAD. Is there anything missing from the config below?


3 Answer(s)
  • 0
    ismcagdas created
    Support Team

    Hi @jtallon,

    AspNet Zero doesn't provide external logout. So, when you logout, it just logs out the user from AspNet Zero, not from OpenId Connect provider.

  • 0
    jtallon created

    Of we have OpenId configured, can a logout url be defined in the OpenId config?

  • 0
    gterdem created
    Support Team

    Hello @jtallon; Most of the openid providers doesn't allow 3rd party signout. This means, if you integrated google login to your application, when login with google account and logout; you won't be able to logged out of google account but your application only. That is something up to openid providers.

    For AzureAD you should be able to logout from AzureAD. After you signout from your cookie and openid schemes, you need to make a request to https://login.microsoftonline.com/tenant-id/oauth2/logout?post_logout_redirect_uri=<optional_uri>.

    Here is a sample that can help you out https://github.com/Azure-Samples/active-directory-dotnet-web-single-sign-out.

    I hope it was helpful.