Skip to content

Commit

Permalink
Merge pull request #70 from maykinmedia/issue/68-sync-groups-helptext
Browse files Browse the repository at this point in the history
💬 [#68] More clear label/helptext for sync_groups
  • Loading branch information
joeribekker authored Dec 21, 2023
2 parents e364be9 + 97cc4f4 commit a48c366
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by Django 3.2.18 on 2023-12-21 14:07

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
(
"mozilla_django_oidc_db",
"0011_alter_openidconnectconfig_userinfo_claims_source",
),
]

operations = [
migrations.AlterField(
model_name="openidconnectconfig",
name="sync_groups",
field=models.BooleanField(
default=True,
help_text="If checked, local user groups will be created for group names present in the groups claim, if they do not exist yet locally.",
verbose_name="Create local user groups if they do not exist yet",
),
),
]
7 changes: 3 additions & 4 deletions mozilla_django_oidc_db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,11 @@ class OpenIDConnectConfig(CachingMixin, OpenIDConnectConfigBase):
),
)
sync_groups = models.BooleanField(
_("synchronize groups"),
_("Create local user groups if they do not exist yet"),
default=True,
help_text=_(
"Synchronize the local user groups with the provided groups. Note that this "
"means a user is removed from all groups if there is no group claim. "
"Uncheck to manage groups manually."
"If checked, local user groups will be created for group names present in "
"the groups claim, if they do not exist yet locally."
),
)
sync_groups_glob_pattern = models.CharField(
Expand Down

0 comments on commit a48c366

Please sign in to comment.