mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
auth: Add support for using SCIM for account management.
This commit is contained in:
committed by
Tim Abbott
parent
7c0995b14b
commit
73a6f2a1a7
@@ -10,7 +10,7 @@ from django.contrib.auth.views import (
|
||||
PasswordResetConfirmView,
|
||||
PasswordResetDoneView,
|
||||
)
|
||||
from django.urls import path
|
||||
from django.urls import path, re_path
|
||||
from django.urls.resolvers import URLPattern, URLResolver
|
||||
from django.utils.module_loading import import_string
|
||||
from django.views.generic import RedirectView, TemplateView
|
||||
@@ -740,6 +740,24 @@ urls += [
|
||||
urls += [path("", include("social_django.urls", namespace="social"))]
|
||||
urls += [path("saml/metadata.xml", saml_sp_metadata)]
|
||||
|
||||
# SCIM2
|
||||
|
||||
from django_scim import views as scim_views
|
||||
|
||||
urls += [
|
||||
# These first couple entries mark the Groups feature of SCIM as
|
||||
# something we haven't implemented.
|
||||
re_path(
|
||||
r"^scim/v2/Groups/.search$",
|
||||
scim_views.SCIMView.as_view(implemented=False),
|
||||
),
|
||||
re_path(
|
||||
r"^scim/v2/Groups(?:/(?P<uuid>[^/]+))?$",
|
||||
scim_views.SCIMView.as_view(implemented=False),
|
||||
),
|
||||
path("scim/v2/", include("django_scim.urls", namespace="scim")),
|
||||
]
|
||||
|
||||
# User documentation site
|
||||
help_documentation_view = MarkdownDirectoryView.as_view(
|
||||
template_name="zerver/documentation_main.html", path_template="/zerver/help/%s.md"
|
||||
|
||||
Reference in New Issue
Block a user