Package org.mockserver.scim
Class ScimProviderConfiguration
java.lang.Object
org.mockserver.scim.ScimProviderConfiguration
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe exact bearer token incoming SCIM requests must present whenisRequireBearerToken()is enabled.List<com.fasterxml.jackson.databind.node.ObjectNode>List<com.fasterxml.jackson.databind.node.ObjectNode>booleanbooleanbooleanWhether the mock SCIM endpoints require anAuthorization: Bearer <token>header.setBasePath(String basePath) setEnforceFilter(boolean enforceFilter) setEnforcePatch(boolean enforcePatch) setExpectedBearerToken(String expectedBearerToken) setIdStrategy(CrudExpectationsDefinition.IdStrategy idStrategy) setInitialGroups(List<com.fasterxml.jackson.databind.node.ObjectNode> initialGroups) setInitialUsers(List<com.fasterxml.jackson.databind.node.ObjectNode> initialUsers) setRequireBearerToken(boolean requireBearerToken)
-
Constructor Details
-
ScimProviderConfiguration
public ScimProviderConfiguration()
-
-
Method Details
-
getBasePath
-
setBasePath
-
getIdStrategy
-
setIdStrategy
-
getInitialUsers
-
setInitialUsers
public ScimProviderConfiguration setInitialUsers(List<com.fasterxml.jackson.databind.node.ObjectNode> initialUsers) -
getInitialGroups
-
setInitialGroups
public ScimProviderConfiguration setInitialGroups(List<com.fasterxml.jackson.databind.node.ObjectNode> initialGroups) -
isEnforceFilter
public boolean isEnforceFilter() -
setEnforceFilter
-
isEnforcePatch
public boolean isEnforcePatch() -
setEnforcePatch
-
isRequireBearerToken
public boolean isRequireBearerToken()Whether the mock SCIM endpoints require anAuthorization: Bearer <token>header.Note the interaction with
getExpectedBearerToken(): whenrequireBearerToken=truebutexpectedBearerTokenis left unset (null/blank), the gate is presence-only — any non-empty bearer token is accepted (the value is not pinned). SetexpectedBearerTokento additionally pin the token to a specific value. -
setRequireBearerToken
-
getExpectedBearerToken
The exact bearer token incoming SCIM requests must present whenisRequireBearerToken()is enabled. When left unset (null/blank) withrequireBearerToken=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
-