mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 19:43:47 +00:00
SCIMClient is a type-unsafe workaround for django-scim2’s conflation of SCIM users with Django users. Given that a SCIMClient is not a UserProfile, it might as well not be a model at all, since it’s only used to satisfy django-scim2’s request.user.is_authenticated queries. This doesn’t solve the type safety issue with assigning a SCIMClient to request.user, nor the performance issue with running the SCIM middleware on non-SCIM requests. But it reduces the risk of potential consequences worse than crashing, since there’s no longer a request.user.id for Django to confuse with the ID of an actual UserProfile. Signed-off-by: Anders Kaseorg <anders@zulip.com>
17 lines
304 B
Python
17 lines
304 B
Python
# Generated by Django 4.0.7 on 2022-09-24 06:32
|
|
|
|
from django.db import migrations
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("zerver", "0414_remove_userstatus_status"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.DeleteModel(
|
|
name="SCIMClient",
|
|
),
|
|
]
|