Skip to main content

scim2-server

This is an example WSGI-SCIM server using scim2-models. It utilizes werkzeug and scim2-filter-parser and keeps all resources in-memory, they are lost once the process exits.

Features

  • Discovery endpoints (/v2/ServiceProviderConfig, /v2/ResourceTypes, /v2/Schemas)
  • Create/Read/Update/Delete resources (POST, GET, PUT, DELETE)
  • Searching & Filtering
  • Support for ETags
  • Unique Constraints
  • HTTP PATCH (Add/Remove/Replace)
  • Sorting

The only optional feature currently missing is support for Bulk operations (RFC 7644, Section 3.7).

Usage

$ scim2-server [-h] [--schema SCHEMA] [--resource-type RESOURCE_TYPE] [--bearer-token BEARER_TOKEN] [--hostname HOSTNAME] [--port PORT] [--reverse-proxy] [--dump-resources DUMP_RESOURCES] [--debug]
  • -h/--help: Show help message
  • --reverse-proxy: Allow using the provider behind a Reverse Proxy (required for URL rewriting).
  • --schema: Register schemas from specified JSON file. If not provided, loads the default schemas from RFC 7643.
  • --resource-type: Register resource types from specified JSON file. If not provided, loads the default resource types from RFC 7643.
  • --bearer-token: Registers a bearer token that can be used for accessing the service. If no tokens are provided, anonymous access without authentication is allowed.
  • --hostname: The hostname to listen on. Defaults to 127.0.0.1.
  • --port: The port to listen on. Defaults to 8080.
  • --dump-resources: Dump a JSON document containing all resources when the provider exits normally.
  • --debug: Enable the interactive Werkzeug debugger, the reloader and the logging of the WSGI environment of each request. The debugger allows arbitrary code execution and the environment contains the bearer tokens, so never use this option on a server reachable by others.

Container

A container image is published on the GitHub container registry for each release. The server listens on 0.0.0.0:8080 inside the container, and the command line arguments are passed to scim2-server:

$ docker run --publish 8080:8080 ghcr.io/python-scim/scim2-server --bearer-token secret

To build the image yourself, use docker build --file Containerfile . or podman build ..

Notes

This provider can be used as a starting point if you want to implement a SCIM provider. You should probably change the following things, if you want to use it in production:

  • Use a proper production WSGI server instead of the one provided by Werkzeug
  • Implement your own Backend as a subclass of scim2_server.backend.Backend
  • Implement proper authorization with OAuth instead of public access or static bearer tokens
  • Support the /Me endpoint, if it applies in your use case
  • Add support for using either a static URL prefix or improve the support for usage behind a reverse proxy

The provider in its current state has been tested successfully against a live Microsoft Entra system as well as a live Okta system.

Origins

Parts of this software were initially developed at CONTACT Software (GitHub) and subsequently made available under the Apache License Version 2.0.

Release files for scim2-server 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scim2-server 0.2.0
File Size Uploaded
scim2_server-0.2.0.tar.gz 27.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scim2-server 0.2.0
File Interpreter ABI Platform
scim2_server-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 57.0 kB

Release files / scim2_server-0.2.0.tar.gz

Download URL scim2_server-0.2.0.tar.gz
Size 27.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2017794a65439b6f9f1c089498c62d63e8fe80d54f0a5bf71aed19081751872a
BLAKE2b-256 checksum
How to use checksums
6808e987c9e3e0c20eda792dd6552c1bb9b5642fa89088de32d6e105a094e2bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / scim2_server-0.2.0-py3-none-any.whl

Download URL scim2_server-0.2.0-py3-none-any.whl
Size 29.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4f15be1844e0e175e8c32252bb3dc131694f8eb200a4f733feff9696b6bc3bd
BLAKE2b-256 checksum
How to use checksums
f31cc686080086aa4290abfb80823b8ec59fb8ac844496f31d50216b757dbef6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page