LogoutURL in Single Sign-Out SAML Protocol

Karl Gardner 195 Reputation points
2024-10-06T17:58:22.2433333+00:00

Hello,

I'm trying to learn a bit more about the single sign out for the SAML protocol in Azure. However, I am a bit confused when the documentation mentions the LogoutURL. The documentation mentions that the LogoutURL is in the application metadata, however I am searching the LogoutURL in the following link: https://login.microsoftonline.com/common/federationmetadata/2007-06/federationmetadata.xml

and do not see it in their. If Microsoft Entra is sending a LogoutResponse to the applications LogoutURL wouldn't it have to be set in the app registration as this url should be in application code?

Thanks!

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Abiola Akinbade 29,570 Reputation points Volunteer Moderator
    2024-10-06T22:39:42.74+00:00

    SSO doesn’t always include the LogoutURL in its federation metadata.

    LogoutURL in SLO for SAML must be configured on the Service Provider side, and Microsoft Entra ID sends a LogoutRequest to this URL when the user logs out. You need to set this up in your App Registration in Azure and make sure that your application can handle the SLO request.

    https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app?tabs=certificate

    If the LogoutURL is not visible in federation metadata, that’s because it is defined in your application settings, not within the IdP’s metadata.

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


  2. Raja Pothuraju 24,385 Reputation points Microsoft External Staff Moderator
    2024-10-08T18:36:37.2633333+00:00

    Hello @Karl Gardner,

    Thank you for posting your query on Microsoft Q&A.

    From your description, I understand that you're looking for information on the Single Sign-Out SAML Protocol and the Entra Logout URL in the Federation Metadata XML. You can find the Entra SAML Logout URL in the SingleLogoutService path of the Federation Metadata XML file.

    User's image

    When a user signs out of your application, or whenever they click "Sign Out" on the application page, your application should generate a SAML Logout request and send it to the Entra Logout URL (i.e., https://login.microsoftonline.com/common/saml2) along with the SAML Logout request. Entra ID will then validate the request and send a SAML response to your application's Logout URL. Below is a screenshot that illustrates the SAML Logout flow.

    Screenshot of the Microsoft Entra Single Sign Out Workflow.

    And you don't need make any changes in App registration for a SAML protocol application.

    I hope this information is helpful. Please feel free to reach out if you have any further questions.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Thanks,
    Raja Pothuraju.


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.