Signed Requests - SAML Integration Not Handling SP Flow after Signed Requests Option Is Enabled
Last Updated:
Overview
This article provides a couple of troubleshooting steps to consider if, after enabling Signed Requests for Custom Security Assertion Markup Language (SAML) applications, the integration is not handling a Service Provider-initiated flow.
Applies To
- Custom SAML application
- Single Sign On
- Signed Requests enabled
- Service Provider must support Signed Requests
Cause
There are two possible causes for this issue:
- A missing attribute in the SAML Request
- A misconfiguration in the metadata provided by Okta
Solution
Include the Format attribute on the NameIdPolicy node. The Format value has to match the configuration for the application in Okta.
- Navigate to Applications > Applications and choose the desired application.
- Click on General > Edit (SAML Settings) and scroll to the bottom until the Preview the SAML Assertion button is seen.
<saml2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"> - Click Next.
- When using ComponentSpace, the
Formatcannot be set prior to callingInitiateSsoAsync. This can only be set when theOnAuthnRequestCreatedevent occurs._samlServiceProvider.Events.OnAuthnRequestCreated += (context, request) => { request.NameIDPolicy.Format = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"; return request; };
If the issue still persists, follow the steps below.
- Navigate to Custom App > Sign On.
- Click on SAML Signing Certificates > Active Certificate > Actions > View IdP metadata.
- Set WantAuthnRequestsSigned to true manually (using any text editor).
- Insert the updated metadata in the corresponding IdP metadata field (on the Service Provider side).
