@PostMapping(produces = MediaType.APPLICATION_XML_VALUE)
    @ResponseBody
    @Operation(summary = "Produce SAML2 response entity", parameters = {
        @Parameter(name = "username", required = true, description = "The username to authenticate"),
        @Parameter(name = "password", required = false, description = "The password to authenticate"),
        @Parameter(name = SamlProtocolConstants.PARAMETER_ENTITY_ID, required = true, description = "The entity id"),
        @Parameter(name = "encrypt", schema = @Schema(type = "boolean"), description = "Whether to encrypt the response")
    })
    public ResponseEntity<Object> producePost(final HttpServletRequest request,
                                              final HttpServletResponse response,
                                              @ModelAttribute
                                              final SamlRequest samlRequest) {
        return produce(request, response, samlRequest);
    }
Produce response entity.

@param request     the request
@param response    the response
@param samlRequest the saml request
@return the response entity
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/sso/SSOSamlIdPPostProfileHandlerEndpoint.java