<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D5KZ00000vb6GK0AYOkta Classic EngineSingle Sign-OnAnswered2025-06-30T15:42:43.000Z2025-06-05T15:41:13.000Z2025-06-30T15:42:43.000Z

LaurentT.33908 (Customer) asked a question.

SAML signed AuthnRequest ends up in a 400 error page with error code being Bad SAML request

Hello,

 

I have generated an AuthnRequest coming from a SP application that looks like this:

```

<saml2p:AuthnRequest xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"

AssertionConsumerServiceURL="https://10.3.33.98/service/bach/auth/saml/login"

ID="z5ec7ffe0-8c06-41ee-877e-04c0d50e9a44"

IssueInstant="2025-06-05T14:02:19.577Z"

ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"

Version="2.0"

>

<saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">livesp-feature</saml2:Issuer>

<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig*">

<ds:SignedInfo>

<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n*" />

<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more*rsa-sha256" />

<ds:Reference URI="*z5ec7ffe0-8c06-41ee-877e-04c0d50e9a44">

<ds:Transforms>

<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig*enveloped-signature" />

<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n*" />

</ds:Transforms>

<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc*sha256" />

<ds:DigestValue>yqxiywDcnk0oVGyqu0LKgr+vgKRLVv7TTO5MwYpzOQk=</ds:DigestValue>

</ds:Reference>

</ds:SignedInfo>

<ds:SignatureValue>

5KBOH+eQz3zz3CY73/zWdgOne49l2b61yDixje5hAJo7ygKxbcYxasz/hyopXOcEUbV4jRBg1iUC

ogDwNK2VP0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3gz3SIeEx+h3/P7G3+oH1L/TAqYHpOZQRpDzOB+FNjTx/0pqJaGTdmqlLNCsjwYd7+vCrrZFixyosIXNHWrMvaBZVjHTxEy1UcwD7kNywboFC4prJT+50fgYAp1NfDsZShxybQRneusF1219PLZj+W5bQE/6c+S9SRnbvlXzXPqkBI0dDdcYH6dQHogAp3WQ7kOA==</ds:X509Certificate>

</ds:X509Data>

</ds:KeyInfo>

</ds:Signature>

<saml2p:NameIDPolicy Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" />

</saml2p:AuthnRequest>

```

 

Certificate has been uploaded in application saml configuration and I end up with a page like this with no more information... what should I do next?

 

/help/servlet/rtaImage?refid=0EMKZ000000FwKo


AyaA.11925 likes this.
This question is closed.
Loading
SAML signed AuthnRequest ends up in a 400 error page with error code being Bad SAML request
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply