# Request signing with Okta as IDP

**URL:** <https://community.auth0.com/t/request-signing-with-okta-as-idp/94947>\
**Category:** Get Help\
**Tags:** connections, saml-enterprise-connection\
**Created:** [November 22, 2022, 9:02pm UTC](https://community.auth0.com/t/request-signing-with-okta-as-idp/94947 "2022-11-22T21:02:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamacdon-sm](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mamacdon-sm/32/28763_2.png) [@mamacdon-sm](https://community.auth0.com/u/mamacdon-sm)\
**Post date:** [November 22, 2022, 9:02pm UTC](https://community.auth0.com/t/request-signing-with-okta-as-idp/94947/1 "2022-11-22T21:02:56Z")

</div>

I’ve created an enterprise SAML connection in Auth0, using Okta as the IDP. Authentication works fine. Now I want to set up request signing.

I’ve enabled `Sign Request` in Auth0. I can see `Signature` and `SigAlg` being sent along with the `SAMLRequest`.

In Okta, I uploaded my tenant’s signing cert (obtained from `https://<MY_TENANT_DOMAIN>/pem`).

 ![okta_cert](https://global.discourse-cdn.com/auth0/original/3X/0/1/0111ad2fc004c191dd69882bcc40739639d8565b.png)

But when signature validation is enabled, login transactions immediately fail with `Unknown configuration or configuration not supported`.

 ![okta_error](https://global.discourse-cdn.com/auth0/original/3X/a/d/ade56d21a4bbf19b3b5df904488e72e990abd9f6.png)

If I disable signature validation on Okta’s side, login works again. So obviously Okta doesn’t like something about my signed SAMLRequest.

I verified the signature using [Validate SAML AuthN Request Online Tool | SAMLTool.com](https://www.samltool.com/validate_authn_req.php) and it’s correct.

Has anyone successfully configured this?

---

<div class="post-metadata">

**Author:** ![karson.alford](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karson.alford/32/42265_2.png) [@karson.alford](https://community.auth0.com/u/karson.alford)\
**Post date:** [January 3, 2023, 2:46pm UTC](https://community.auth0.com/t/request-signing-with-okta-as-idp/94947/3 "2023-01-03T14:46:49Z")

</div>

Dealing with the exact same issue. Did you find a resolution?

I can’t find any other details about this error. What is the next step for debugging this?

Looks like many others are having this issue:  
[https://support.okta.com/help/s/question/0D54z00008LSLMsCAP/saml-signed-requests-failing-with-error-code-400-sp-initiated-sso-flow?language=en\_US](https://support.okta.com/help/s/question/0D54z00008LSLMsCAP/saml-signed-requests-failing-with-error-code-400-sp-initiated-sso-flow?language=en_US)

What is the timeline for resolving this?

---

<div class="post-metadata">

**Author:** ![mamacdon-sm](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mamacdon-sm/32/28763_2.png) [@mamacdon-sm](https://community.auth0.com/u/mamacdon-sm)\
**Post date:** [January 23, 2023, 11:34pm UTC](https://community.auth0.com/t/request-signing-with-okta-as-idp/94947/4 "2023-01-23T23:34:29Z")

</div>

I have not solved it. I’ve been working around this by disabling signature validation in Okta ☹

---

<div class="post-metadata">

**Author:** ![karson.alford](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karson.alford/32/42265_2.png) [@karson.alford](https://community.auth0.com/u/karson.alford)\
**Post date:** [January 24, 2023, 10:34pm UTC](https://community.auth0.com/t/request-signing-with-okta-as-idp/94947/5 "2023-01-24T22:34:21Z")

</div>

You must include the Format attribute on the NameIdPolicy node and the Format value has to match the configuration for your application in Okta.

Applications \> “Your Application” \> General \> Edit (SAML Settings) \> Next \> Scroll to Bottom  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/3/9/398656ccca95c3a264990d86e7b360e42510a000.png)

`<saml2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">`

**To Fix The Issue:**  
We are using ComponentSpace and you can’t set the Format prior to calling InitiateSsoAsync. You can only set it when the OnAuthnRequestCreated event occurs.

```auto
_samlServiceProvider.Events.OnAuthnRequestCreated += (context, request) =>
{
    request.NameIDPolicy.Format = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified";
    return request;
};

```

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 26, 2023, 11:07am UTC](https://community.auth0.com/t/request-signing-with-okta-as-idp/94947/6 "2023-01-26T11:07:25Z")

</div>

Thanks for sharing it with the rest of community!

---

<div class="post-metadata">

**Author:** ![karson.alford](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karson.alford/32/42265_2.png) [@karson.alford](https://community.auth0.com/u/karson.alford)\
**Post date:** [January 26, 2023, 5:33pm UTC](https://community.auth0.com/t/request-signing-with-okta-as-idp/94947/7 "2023-01-26T17:33:12Z")

</div>

[From Okta Support]

From what I have been told by our team in terms of Documentation.

This particular function is not something that will be made public. In our public documentation we include general information about how to setup apps that work with us. We do not include advanced details such as how our backed checks are made and what they are, so we do not have any public facing doc which highlights this.

If App Vendors are interested to integrate their applications with us they should be working with our [oinmanager.okta.com](https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Foinmanager.okta.com%2F&data=05%7C01%7Ckarson.alford%40ncontracts.com%7Cb4c1d8cb2a504e0d8a2708db008b8e1f%7Cb16e3dc1415b443d93b826af8e95260b%7C0%7C0%7C638104371900061720%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=FQ0P%2FNJNaxyufWoh2OhIMhLjneAT4R70yPBmx9l5OVY%3D&reserved=0) team where these types of details are usually discussed.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 9, 2023, 5:33pm UTC](https://community.auth0.com/t/request-signing-with-okta-as-idp/94947/8 "2023-02-09T17:33:14Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
