Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💬 [#68] More clear label/helptext for sync_groups #70

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading