Hihi,
I need to get IDP initiated SLO working without errors. I have configured my logout endpoint in azure and the on the SP, using the SLO url provided by the IDP metadata.
When I send the saml logout response I get:
Request Id: 7af0ad15-1452-4da5-8eda-fe62607d0300
Correlation Id: d341f8d7-8352-4d86-b0a3-3777154de06b
Timestamp: 2019-07-04T10:44:05Z
Message: AADSTS7500513: The message type 'Microsoft.AzureAD.Protocols.Saml2.LogoutResponse' is not a supported type of SAML request. Supported SAML requests are AuthnRequest and LogoutRequest.
I'm sending the logout response to:
https://login.microsoftonline.com/{id}/saml2
Is this correct url for the response SLO response? I grabbed it from the azure metadata for my app.
Here is copy of the SAML logout request from microsoft and my SAML response:
<samlp:LogoutRequest ID="_3b603b51-6fe6-4e51-ad00-4fe36d6037c9"
Version="2.0"
IssueInstant="2019-07-04T10:44:04.786Z"
Destination="https://example.com/sp/logout.php"
NotOnOrAfter="2019-07-04T11:44:04.786Z"
xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
>
<Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion">https://sts.windows.net/09fa5f0e-2118-4656-8529-677ed8fdbe78/</Issuer>
<NameID xmlns="urn:oasis:names:tc:SAML:2.0:assertion">f0WO8-FtB9LJX_KZQxsJS4mWGvzhPfkJCHfMXglrBBU</NameID>
<samlp:SessionIndex>_0e40640e-c37b-4d8f-8887-b16da25d0400</samlp:SessionIndex>
</samlp:LogoutRequest>
<samlp:LogoutResponse xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
ID="ONELOGIN_bff897c0ccaa51b32e92ea44b9061344bce9432b"
Version="2.0"
IssueInstant="2019-07-04T10:43:57Z"
Destination="https://login.microsoftonline.com/{{id}}/saml2"
InResponseTo="_3b603b51-6fe6-4e51-ad00-4fe36d6037c9"
>
<saml:Issuer>https://example.com</saml:Issuer>
<samlp:Status>
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success" />
</samlp:Status>
</samlp:LogoutResponse>