SAML Response Containing Error "MessageID="unsatisfied_nameid_policy""

Overview

The customer is getting the following error in their tenant log for a failed SAML connection login attempt: "message": "You may have pressed the back button, refreshed during login, opened too many login dialogs, or there is some issue with cookies, since we couldn't find your session. Try logging in again from the application and if the problem persists please contact the administrator.".

The SAML Response decoded from the har file shows the following:

    <samlp:Status>
        <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Requester">
            <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:InvalidNameIDPolicy"></samlp:StatusCode>
        </samlp:StatusCode>
        <samlp:StatusDetail>
            <fim:FIMStatusDetail MessageID="unsatisfied_nameid_policy"></fim:FIMStatusDetail>
        </samlp:StatusDetail>
    </samlp:Status>

Applies To

  • SAML

Cause

The error message "unsatisfied_nameid_policy" appears to be a configuration issue on the IdP side and seems to be common with ADFS. There are some Stack Overflow posts mentioning that this can sometimes be a part of a rule configuration in ADFS that is not set up to return the Name ID in the requested format.

https://stackoverflow.com/questions/19816803/adfs-2-0-invalidnameidpolicy

https://stackoverflow.com/questions/40540409/invalidnameidpolicy-working-with-adfs

Solution

These links were shared with the customer and they were able to work with their IdP to resolve the issue.

Recommended content

No recommended content found...