Skip to content

Commit

Permalink
♻️ [#76] Make groups_claim optional
Browse files Browse the repository at this point in the history
to make it possible to disable group assignment
  • Loading branch information
stevenbal committed Jan 9, 2024
1 parent 06e3a4e commit 3648132
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.2.23 on 2024-01-09 10:38

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("mozilla_django_oidc_db", "0013_merge_20231221_1529"),
]

operations = [
migrations.AlterField(
model_name="openidconnectconfig",
name="groups_claim",
field=models.CharField(
blank=True,
default="roles",
help_text="The name of the OIDC claim that holds the values to map to local user groups.",
max_length=50,
verbose_name="groups claim",
),
),
]
1 change: 1 addition & 0 deletions mozilla_django_oidc_db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ class OpenIDConnectConfig(CachingMixin, OpenIDConnectConfigBase):
help_text=_(
"The name of the OIDC claim that holds the values to map to local user groups."
),
blank=True,
)
sync_groups = models.BooleanField(
_("Create local user groups if they do not exist yet"),
Expand Down

0 comments on commit 3648132

Please sign in to comment.