I am trying to setup SAML using SP initiated sign on in OKTA (IdP) using my Windows Application (SP) however i get a 400 bad SAML request after IDP authentication of my credentials. Instead of redirecting back to the application URL (SP) i get a 400 Bad SAML request.
My SP URL - https://sampleapp.company.com/appname/default.aspx
My SAML ACS URL - https://sampleapp.company.com/appname/SAML/authenticate.aspx
ON the SP side i have added the Idp connector URL and the certificate key (no trailing spaces) to the web.config.
On the OKTA configuration I have added the SAML ACS url in all the 4 sections 1) Single sign on URL 2) Recipient URL 3) Destination URL 4) Audience URI (SP Entity ID)
Name ID format is - Unspecified. I dont see the 'Compression' menu on the configuration page. Rest of the advanced settings are kept with their default values.
I have tried playing around with the Default Relay State section as well but no use.
I hit the SP -> redirect to OKTA page -> Enter credentials -> 400 Bad SAML request.
Hit the Home button -> Hit the application chicklet -> Log into the application succesfully (this is Idp initiated) which works fine.
I have tried all the links and suggestions on the OKTA forum but cant get past this 400 bad SAML request. Is there something incorrectly set up in the OKTA configuration?
Any help would be appreciated :)
Thanks