Class SamlSloCallback

java.lang.Object
org.mockserver.saml.SamlSloCallback
All Implemented Interfaces:
ExpectationCallback<HttpResponse>, ExpectationResponseCallback

public class SamlSloCallback extends Object implements ExpectationResponseCallback
Mock SAML 2.0 IdP Single-Logout (SLO) endpoint implementing the HTTP-POST profile.

Accepts a LogoutRequest (read from the query string or the application/x-www-form-urlencoded body, mirroring SamlSsoCallback), builds a freshly signed <LogoutResponse> (see SamlLogoutResponseBuilder), base64-encodes it, and returns a self-submitting HTML form that POSTs the SAMLResponse (and the echoed RelayState, if supplied) to the SP's Single-Logout service URL.

The LogoutRequest ID is extracted with the same XXE-hardened, root-element-only parsing as the SSO callback and echoed as InResponseTo.

  • Constructor Details

    • SamlSloCallback

      public SamlSloCallback()
  • Method Details