sources/oauth: fix sources not allowing blank values
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> #2047
This commit is contained in:
parent
31ba543c62
commit
ebd476be14
|
@ -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"),
|
||||
),
|
||||
]
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Reference in New Issue