Class ScimProviderGenerator

java.lang.Object
org.mockserver.scim.ScimProviderGenerator

public class ScimProviderGenerator extends Object
Generates MockServer Expectations that serve a complete SCIM 2.0 provider: CRUD over Users and Groups plus the SCIM discovery endpoints (/ServiceProviderConfig, /ResourceTypes, /Schemas).

Mirrors OidcProviderGenerator: dynamic endpoints are served by HttpClassCallbacks that resolve their state from ScimResourceStore, while the static discovery documents are served by plain response() expectations. Every expectation carries a stable withId(...) keyed by base path, so re-running PUT /mockserver/scim upserts rather than duplicates.

  • Constructor Details

    • ScimProviderGenerator

      public ScimProviderGenerator()
  • Method Details

    • generate

      public List<Expectation> generate(ScimProviderConfiguration config)
      Generates SCIM provider expectations from the given configuration and registers the backing Users/Groups stores in ScimResourceStore.
      Parameters:
      config - the provider configuration (must not be null)
      Returns:
      the generated expectations (never empty)