Class SamlSsoCallback

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

public class SamlSsoCallback extends Object implements ExpectationResponseCallback
Mock SAML 2.0 IdP Single-Sign-On endpoint implementing the SP-initiated Web-Browser-SSO POST profile.

There is no login UI — the mock authenticates the configured subject deterministically. It builds a freshly signed SAML <Response> (see SamlResponseBuilder), base64-encodes it, and returns a self-submitting HTML form that POSTs the SAMLResponse (and the echoed RelayState, if supplied) to the SP's assertion consumer service URL.

The RelayState and SAMLRequest are read from either the query string (HTTP-GET) or the application/x-www-form-urlencoded body (HTTP-POST), so both bindings of the initial SP redirect are accepted.

  • Constructor Details

    • SamlSsoCallback

      public SamlSsoCallback()
  • Method Details