code: @PostMapping(path = SamlIdPConstants.ENDPOINT_SAML2_IDP_ECP_PROFILE_SSO,
          consumes = {MediaType.TEXT_XML_VALUE, SamlIdPConstants.ECP_SOAP_PAOS_CONTENT_TYPE},
          produces = {MediaType.TEXT_XML_VALUE, SamlIdPConstants.ECP_SOAP_PAOS_CONTENT_TYPE})
      public void handleEcpRequest(final HttpServletResponse response,
                                   final HttpServletRequest request) {
          val soapContext = decodeSoapRequest(request);
          val credential = extractBasicAuthenticationCredential(request, response);
  
          if (credential == null) {
              LOGGER.error("Credentials could not be extracted from the SAML ECP request");
              return;
          }
          if (soapContext == null) {
              LOGGER.error("SAML ECP request could not be determined from the authentication request");
              return;
          }
          handleEcpRequest(response, request, soapContext, credential, SAMLConstants.SAML2_PAOS_BINDING_URI);
      }
docs: Handle ecp request.
  
  @param response the response
  @param request  the request