
BrianS.54488 (Customer) asked a question.
After sending a SAML logout request to OKTA, the user remains logged in to the IdP
It is my understanding that after a logout request is sent to OKTA using SAML, that the user is logged out of the IdP. This doesn't seem to be happening however.
The workflow I am observing:
1) User logs out of the SP app.
2) SAML logout request is sent to OKTA.
3) (OKTA should log the user out of the IdP at this point, but does not)
4) OKTA is redirecting back to the SP app with a SAMLResponse and the response is validated but has <saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:RequestDenied"/>
Any ideas on how to troubleshoot this? I couldn't find any logs on OKTA about the logout request being denied. The reports only seem to show the results of login attempts.
The logout SAMLRequest is being sent to OKTA using the GET method.
Enable Single Logout is enabled.
The logout request is signed.
I verified that the SessionIndex and the NameId in the login SAMLResponse matches the SessionIndex and the NameId in the logout SAMLRequest.
Thank you.

Hi @BrianS.54488 (Customer) , Thank you for reaching out to the Okta Community!
You are experiencing a SAML Single Logout (SLO) failure where after sending a signed logout request to Okta, the user remains logged in to the IdP and receives a RequestDenied status code in the LogoutResponse, despite Single Logout being enabled and the SessionIndex and NameID matching between the login and logout requests.
The most common causes of RequestDenied responses during SAML SLO are signature validation failures or certificate mismatches between your Service Provider configuration and Okta's expectations.
Root Cause:
SAML logout requests must be cryptographically signed and validated by Okta. If the signature on your logout request does not validate against the certificate Okta has on file for your application, Okta will deny the logout request without logging a detailed error in the standard UI reports. This is a security measure to prevent unauthorized logout attempts.
Solution:
Follow these troubleshooting steps:
If the system logs still show no detailed error after verifying the above, or if the issue persists, contact Okta Support with the System Log entries for the failed SLO attempt and the raw LogoutRequest and LogoutResponse XML for further investigation.
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--
Help others in the community by liking or hitting Select as Best if this response helped you.
Collect them all. Learn a new skill and earn a new Okta Learning badge.
Just released: More Okta Community badges just added