django_scim2_server package¶
Subpackages¶
Submodules¶
django_scim2_server.adapters module¶
django_scim2_server.apps module¶
django_scim2_server.auth module¶
Built-in authentication check callables for SCIM views.
django_scim2_server.conf module¶
These are the available settings.
All attributes prefixed SCIM2_SERVER_* can be overridden from your Django
project’s settings module by defining a setting with the same name.
- class django_scim2_server.conf.AppSettings(SCIM2_SERVER_USER_MODEL: str = 'auth.User', SCIM2_SERVER_GROUP_MODEL: str = 'auth.Group', SCIM2_SERVER_USER_ADAPTER: str = 'django_scim2_server.adapters.DefaultUserAdapter', SCIM2_SERVER_GROUP_ADAPTER: str = 'django_scim2_server.adapters.DefaultGroupAdapter', SCIM2_SERVER_AUTH_CHECK: str = 'django_scim2_server.auth.is_superuser')[source]¶
Bases:
objectAccess this instance as .conf.app_settings.
- SCIM2_SERVER_AUTH_CHECK: str = 'django_scim2_server.auth.is_superuser'¶
Dotted path to a callable
(HttpRequest) -> boolfor access control.
- SCIM2_SERVER_GROUP_ADAPTER: str = 'django_scim2_server.adapters.DefaultGroupAdapter'¶
Dotted path to the group adapter class.
- SCIM2_SERVER_GROUP_MODEL: str = 'auth.Group'¶
Target group model (app_label.ModelName).
- SCIM2_SERVER_USER_ADAPTER: str = 'django_scim2_server.adapters.DefaultUserAdapter'¶
Dotted path to the user adapter class.
- SCIM2_SERVER_USER_MODEL: str = 'auth.User'¶
Target user model (app_label.ModelName).
django_scim2_server.constants module¶
SCIM 2.0 constants: schema URNs, content types, and discovery payloads.
django_scim2_server.exceptions module¶
SCIM 2.0 error types and response helpers.
- exception django_scim2_server.exceptions.BadRequestError(detail: str = 'Bad request')[source]¶
Bases:
SCIMErrorMalformed or invalid request.
- exception django_scim2_server.exceptions.ConflictError(detail: str = 'Conflict')[source]¶
Bases:
SCIMErrorResource conflict (e.g. uniqueness violation).
- exception django_scim2_server.exceptions.InvalidFilterError(detail: str = 'Invalid filter')[source]¶
Bases:
SCIMErrorInvalid SCIM filter expression.
- exception django_scim2_server.exceptions.InvalidValueError(detail: str = 'Invalid value')[source]¶
Bases:
SCIMErrorInvalid value in request body.
- exception django_scim2_server.exceptions.NotFoundError(detail: str = 'Resource not found')[source]¶
Bases:
SCIMErrorResource not found.
django_scim2_server.filters module¶
SCIM 2.0 filter expression parser.
django_scim2_server.models module¶
django_scim2_server.patch module¶
django_scim2_server.urls module¶
URL configuration for SCIM 2.0 endpoints.
django_scim2_server.views module¶
SCIM 2.0 views: discovery endpoints and CRUD for Users and Groups.
- class django_scim2_server.views.GroupDetailView(**kwargs)[source]¶
Bases:
SCIMViewGET/PUT/PATCH/DELETE /Groups/<scim_id>.
- class django_scim2_server.views.GroupListView(**kwargs)[source]¶
Bases:
SCIMViewGET /Groups (list+filter) and POST /Groups (create).
- class django_scim2_server.views.ResourceTypesView(**kwargs)[source]¶
Bases:
SCIMViewGET /ResourceTypes - available SCIM resource types.
- class django_scim2_server.views.SCIMView(**kwargs)[source]¶
Bases:
ViewBase view for SCIM endpoints.
- class django_scim2_server.views.SchemasView(**kwargs)[source]¶
Bases:
SCIMViewGET /Schemas - SCIM schema definitions.
- class django_scim2_server.views.ServiceProviderConfigView(**kwargs)[source]¶
Bases:
SCIMViewGET /ServiceProviderConfig - SCIM service provider configuration.
- class django_scim2_server.views.UserDetailView(**kwargs)[source]¶
Bases:
SCIMViewGET/PUT/PATCH/DELETE /Users/<scim_id>.
- delete(request: HttpRequest, scim_id: str, **kwargs: Any) HttpResponse[source]¶
Delete (deactivate) a user.