code: @PostMapping(path = SamlIdPConstants.ENDPOINT_SAML1_SOAP_ARTIFACT_RESOLUTION)
      protected void handlePostRequest(final HttpServletResponse response,
                                       final HttpServletRequest request) {
          val ctx = decodeSoapRequest(request);
          val artifactMsg = (ArtifactResolve) ctx.getMessage();
          try {
              val issuer = artifactMsg.getIssuer().getValue();
              val service = verifySamlRegisteredService(issuer);
              val adaptor = getSamlMetadataFacadeFor(service, artifactMsg);
              if (adaptor.isEmpty()) {
                  throw new UnauthorizedServiceException(UnauthorizedServiceException.CODE_UNAUTHZ_SERVICE, "Cannot find metadata linked to " + issuer);
              }
              val facade = adaptor.get();
              verifyAuthenticationContextSignature(ctx, request, artifactMsg, facade);
              val artifactId = artifactMsg.getArtifact().getArtifact();
              val ticketId = getSamlProfileHandlerConfigurationContext().getArtifactTicketFactory().createTicketIdFor(artifactId);
              val ticket = getSamlProfileHandlerConfigurationContext().getTicketRegistry().getTicket(ticketId, SamlArtifactTicket.class);
  
              val issuerService = getSamlProfileHandlerConfigurationContext().getWebApplicationServiceFactory().createService(issuer);
              val casAssertion = buildCasAssertion(ticket.getTicketGrantingTicket().getAuthentication(),
                  issuerService, service,
                  CollectionUtils.wrap("artifact", ticket));
              getSamlProfileHandlerConfigurationContext().getResponseBuilder().build(artifactMsg, request, response, casAssertion,
                  service, facade, SAMLConstants.SAML2_ARTIFACT_BINDING_URI, ctx);
          } catch (final Exception e) {
              LOGGER.error(e.getMessage(), e);
              request.setAttribute(SamlIdPConstants.REQUEST_ATTRIBUTE_ERROR, e.getMessage());
              getSamlProfileHandlerConfigurationContext().getSamlFaultResponseBuilder().build(artifactMsg, request, response,
                  null, null, null, SAMLConstants.SAML2_ARTIFACT_BINDING_URI, ctx);
          }
      }
docs: Handle post request.
  
  @param response the response
  @param request  the request