When trying SSO with custom SP applicaton I get the below error.
ERROR:
400
Bad Request
Your request resulted in an error. Bad SAML request
Error: Bad SAML request
Why does this error occur and how to solve this? I have attached the SAML Request and also the SSO URL below.
SAML Request:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><saml2p:AuthnRequest
xmlns:saml2p=“urn:oasis:names:tc:SAML:2.0:protocol”
AssertionConsumerServiceURL=“http://localhost:8080/TestApp/ACS”
Destination=“https://dev-92809401.okta.com/app/dev-92809401_samlserviceprovidertest_1/exk7u1c2atoMGqnqE5d7/sso/saml”
ForceAuthn=“false”
ID=“a6c967da-2253-418b-bf25-53c90f50af7d”
IsPassive=“false”
IssueInstant=“2024-08-29T17:47:01.529996”
ProtocolBinding=“urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST”
ProviderName=“TestApp”
Version=“2.0”>
<saml2:Issuer
xmlns:saml2=“urn:oasis:names:tc:SAML:2.0:assertion”>http://localhost:8080/saml-service-provider-test
</saml2:Issuer>
</saml2p:AuthnRequest>
In the above request the SAML XML is deflated, Base64 encoded, and url encoded.
Thanks in advance.