How to SSO sign out for openId web app using azure ad b2b

Kishore Kumar K 1 Reputation point
2020-11-04T05:39:59.31+00:00

Is there any way to sign out from my web app using azure ad b2b open id connect when I sign out from azure portal or mail. I am working on .net framework web application.

Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,831 Reputation points Microsoft Employee Moderator
    2020-11-04T07:42:56.863+00:00

    Hello @Kishore Kumar K , thank you for reaching out. There is no logout system available specific to B2B logouts. The logout process is implemented by clearing the app cookies or removing the user's session.

    More details on the Sign-out process in OpenID Connect can be found here: https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-protocols-oidc#send-a-sign-out-request

    You can also find the code snippets for logout using ASP .net here: https://learn.microsoft.com/en-us/azure/active-directory/develop/scenario-web-app-sign-user-sign-in?tabs=aspnet#sign-out-button

    You can also check the following sample (if not already) to get the view of the complete code and use it accordingly in your app to implement the logout:
    https://github.com/Azure-Samples/ms-identity-aspnet-webapp-openidconnect

    This sample uses OpenIDConnect and OWIN Middleware to implement the sign-in and signout methods.

    Hope this helps.

    Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.