A partial implementation of the SCIM 2.0 provider specification for use with Django.
Project description
This is a provider-side implementation of the SCIM 2.0 [1] specification for use in Django.
Note that currently the only supported database is Postgres.
Installation
Install with pip:
$ pip install django-scim2
Then add the django_scim app to INSTALLED_APPS in your Django’s settings:
INSTALLED_APPS = ( ... 'django_scim', )
By default, request.user.is_anonymous() is checked to determine if the SCIM request should be allowed or denied.
If you have specific authentication needs, look into overriding the default “is authenticated predicate” (i.e. see GET_IS_AUTHENTICATED_PREDICATE for details) or subclassing the middleware that performs the check (AUTH_CHECK_MIDDLEWARE).
Add the necessary url patterns to your root urls.py file. Please note that the namespace is mandatory and must be named scim:
urlpatterns = [ ... path('scim/v2/', include('django_scim.urls')), ]
Finally, add settings appropriate for you app to your settings.py file:
SCIM_SERVICE_PROVIDER = { 'NETLOC': 'localhost', 'AUTHENTICATION_SCHEMES': [ { 'type': 'oauth2', 'name': 'OAuth 2', 'description': 'Oauth 2 implemented with bearer token', }, ], }
Other SCIM settings can be provided but those listed above are required.
PyPI
Source
Documentation
Development
This project uses Poetry to manage dependencies, etc. Thus to install the necessary tools when developing, run:
` poetry install `
Tests
https://github.com/15five/django-scim2/actions
Tests are typically run locally with tox (https://tox.wiki/). Tox will test all supported versions of Python and Django.
tox
To run the test suite with a single version of Python (the version you created the virtualenv with), run:
` poetry run pytest tests/ `
Coverage
https://codecov.io/gh/15five/django-scim2/
` tox -e coverage `
License
This library is released under the terms of the MIT license. Full details in LICENSE.txt file.
Extensibility
This library was forked and developed to be highly extensible. A number of adapters can be defined to control what different endpoints do to your resources. Please see the documentation for more details.
PLEASE NOTE: This app does not implement authorization and authentication. Such tasks are left for other apps such as Django OAuth Toolkit to implement.
Development Speed
Since this project is relatively stable, time is only dedicated to it on Fridays. Thus if you issue a PR, bug, etc, please note that it may take a week before we get back to you. Thanks you for your patience.
Credits
This project was forked from https://bitbucket.org/atlassian/django_scim
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_scim2-0.19.1.tar.gz
.
File metadata
- Download URL: django_scim2-0.19.1.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.1 Darwin/22.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8126111160e76a880f6699babc5259f0345c9316c8018ce5dcc3f7579ccb9e89 |
|
MD5 | 94cb0b3ea547c93e5b54ea1d7e7f2e93 |
|
BLAKE2b-256 | 0759da3061607de7be41d7e5bf484acb13510d631f8fcfcecd9f5e02dc5bf4f1 |
File details
Details for the file django_scim2-0.19.1-py3-none-any.whl
.
File metadata
- Download URL: django_scim2-0.19.1-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.1 Darwin/22.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 845eaa64e72e4ddfe2aa54d21865721f8c1d59ecd9c06e72341eeb03ed6ba94e |
|
MD5 | dabdf21663b8e520628407dac9721d1d |
|
BLAKE2b-256 | a324ca2cab008049239585434f7451a42757d7d258bf741316fd16587e564b74 |