SAP Knowledge Base Article - Preview

3666748 - Service cannot be reached (404 Not Found) when redirected to Assertion Consumer Service URL (/sap/saml2/sp/acs/<client>)

Symptom

  • During SAML2 flow, after authenticating with IDP, redirection to the Service Provider's (SP) Assertion Consumer Service (ACS) URL (https://<hostname>:<port>/sap/saml2/sp/acs/<client>) ends with error Service cannot be reached - 404 Not Found:

Service cannot be reached

What has happened?
URL call was terminated because the corresponding service is not available.

Note
The termination occurred in system with error code 404 and for the reason Not found.

What can I do?
Please select a valid URL.

HTTP 404 - Not found
Your SAP Internet Communication Framework Team

  • In a SAML trace via Security Diagnostic Tool, there's an Outgoing AuthnRequest, but it's not followed by an Incoming HTTP request to /sap/saml2/sp/acs/<client> and there's no SAML Response.

  • In an HTTP trace (DevTools > Network), there's a POST Request to https://<hostname>:<port>/sap/saml2/sp/acs/<client> with a header status "HTTP/1.1 404 Not Found". In the POST Data, a SAMLResponse can be found.

This KBA is specific for the 404 Not Found error in combination with message "Service cannot be reached".

For 404 Not Found errors in combination with message "SAML2 service not accessible" that may happen during this step, please refer to:

  • KBA 2332686 - SAML2.0: No RelayState mapping found for RelayState value ouc…
  • KBA 2352520 - SAML2.0: No default application path is configured for ACS endpoint

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."


Read more...

Environment

  • SAP NetWeaver
  • ABAP platform

Product

ABAP platform all versions ; SAP NetWeaver all versions

Keywords

404, Not Found, ACS, ACS URL, Assertion Consumer Service, /sap/saml2/sp/acs/, Service cannot be reached, URL call was terminated because the corresponding service is not available, Please select a valid URL, HTTP 404 - Not found, external alias, No RelayState, SAML2 service not accessible , KBA , BC-SEC-LGN-SML , SAML 2.0 for ABAP , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.