Class ScimProviderConfiguration

java.lang.Object
org.mockserver.scim.ScimProviderConfiguration
All Implemented Interfaces:
Serializable

public class ScimProviderConfiguration extends Object implements Serializable
Configuration for the SCIM 2.0 mock provider. All fields are optional with sensible defaults so that PUT /mockserver/scim with an empty body produces a fully functional SCIM provider serving /scim/v2/Users, /scim/v2/Groups, and the discovery endpoints (/ServiceProviderConfig, /ResourceTypes, /Schemas).

Mirrors OidcProviderConfiguration in shape (fluent setters, @JsonIgnoreProperties(ignoreUnknown=true), @JsonInclude(NON_NULL), Serializable) so it serializes/deserializes cleanly over the control plane.

See Also:
  • Constructor Details

    • ScimProviderConfiguration

      public ScimProviderConfiguration()
  • Method Details

    • getBasePath

      public String getBasePath()
    • setBasePath

      public ScimProviderConfiguration setBasePath(String basePath)
    • getIdStrategy

      public CrudExpectationsDefinition.IdStrategy getIdStrategy()
    • setIdStrategy

    • getInitialUsers

      public List<com.fasterxml.jackson.databind.node.ObjectNode> getInitialUsers()
    • setInitialUsers

      public ScimProviderConfiguration setInitialUsers(List<com.fasterxml.jackson.databind.node.ObjectNode> initialUsers)
    • getInitialGroups

      public List<com.fasterxml.jackson.databind.node.ObjectNode> getInitialGroups()
    • setInitialGroups

      public ScimProviderConfiguration setInitialGroups(List<com.fasterxml.jackson.databind.node.ObjectNode> initialGroups)
    • isEnforceFilter

      public boolean isEnforceFilter()
    • setEnforceFilter

      public ScimProviderConfiguration setEnforceFilter(boolean enforceFilter)
    • isEnforcePatch

      public boolean isEnforcePatch()
    • setEnforcePatch

      public ScimProviderConfiguration setEnforcePatch(boolean enforcePatch)
    • isRequireBearerToken

      public boolean isRequireBearerToken()
      Whether the mock SCIM endpoints require an Authorization: Bearer <token> header.

      Note the interaction with getExpectedBearerToken(): when requireBearerToken=true but expectedBearerToken is left unset (null/blank), the gate is presence-only — any non-empty bearer token is accepted (the value is not pinned). Set expectedBearerToken to additionally pin the token to a specific value.

    • setRequireBearerToken

      public ScimProviderConfiguration setRequireBearerToken(boolean requireBearerToken)
    • getExpectedBearerToken

      public String getExpectedBearerToken()
      The exact bearer token incoming SCIM requests must present when isRequireBearerToken() is enabled. When left unset (null/blank) with requireBearerToken=true, any non-empty bearer token is accepted (presence-only, not value-pinned).

      Serialized WRITE_ONLY: the server never echoes this credential back out, so it does not leak via the control-plane response.

    • setExpectedBearerToken

      public ScimProviderConfiguration setExpectedBearerToken(String expectedBearerToken)