Skip to main content

Lightweight SCIM2 server prototype

Project description

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]
  • -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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scim2_server-0.1.8.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scim2_server-0.1.8-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

Details for the file scim2_server-0.1.8.tar.gz.

File metadata

  • Download URL: scim2_server-0.1.8.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scim2_server-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c07e7b3d4cde120e4bbe778d05a2f5a595638bbc0d5fa6f543e4bde6eb62bb68
MD5 58ba8fc31d296173869f70e091995ed3
BLAKE2b-256 f92b1bcf8d648d4660d8526db843402b80971d36a82354ba21ae53cf1da14326

See more details on using hashes here.

Provenance

The following attestation bundles were made for scim2_server-0.1.8.tar.gz:

Publisher: release.yml on python-scim/scim2-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scim2_server-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: scim2_server-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 29.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scim2_server-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 472524088dd43de198dbb5aaf9439edcb16306fb1189f811e398ea82758dfd40
MD5 62f5af68ded7b9fa7c9a3d079cf174d2
BLAKE2b-256 bc048d35452b7c95ef9f6f88e6a73ac5fb4af9f5b3897c14ba87a85a77c15177

See more details on using hashes here.

Provenance

The following attestation bundles were made for scim2_server-0.1.8-py3-none-any.whl:

Publisher: release.yml on python-scim/scim2-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page