sources/oauth: fix sources not allowing blank values

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

#2047
This commit is contained in:
Jens Langhammer 2022-01-03 21:36:14 +01:00
parent 31ba543c62
commit ebd476be14
2 changed files with 4 additions and 2 deletions

View File

@ -13,6 +13,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="oauthsource",
name="additional_scopes",
field=models.TextField(default="", verbose_name="Additional Scopes"),
field=models.TextField(default="", blank=True, verbose_name="Additional Scopes"),
),
]

View File

@ -44,7 +44,9 @@ class OAuthSource(Source):
verbose_name=_("Profile URL"),
help_text=_("URL used by authentik to get user information."),
)
additional_scopes = models.TextField(default="", verbose_name=_("Additional Scopes"))
additional_scopes = models.TextField(
default="", blank=True, verbose_name=_("Additional Scopes")
)
consumer_key = models.TextField()
consumer_secret = models.TextField()