From 902378af53cdb87434e6fc94950300c7a80ecdb4 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 21 Jul 2021 00:22:09 +0200 Subject: [PATCH] providers/oauth2: fix redirect_uris not having blank set Signed-off-by: Jens Langhammer --- authentik/providers/oauth2/migrations/0001_initial.py | 1 + authentik/providers/oauth2/models.py | 1 + web/src/pages/providers/oauth2/OAuth2ProviderForm.ts | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/authentik/providers/oauth2/migrations/0001_initial.py b/authentik/providers/oauth2/migrations/0001_initial.py index 00e0ab5fa..3140ebba6 100644 --- a/authentik/providers/oauth2/migrations/0001_initial.py +++ b/authentik/providers/oauth2/migrations/0001_initial.py @@ -109,6 +109,7 @@ class Migration(migrations.Migration): "redirect_uris", models.TextField( default="", + blank=True, help_text="Enter each URI on a new line.", verbose_name="Redirect URIs", ), diff --git a/authentik/providers/oauth2/models.py b/authentik/providers/oauth2/models.py index 97b6bc077..ccc411d0a 100644 --- a/authentik/providers/oauth2/models.py +++ b/authentik/providers/oauth2/models.py @@ -158,6 +158,7 @@ class OAuth2Provider(Provider): ) redirect_uris = models.TextField( default="", + blank=True, verbose_name=_("Redirect URIs"), help_text=_("Enter each URI on a new line."), ) diff --git a/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts b/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts index 95ed2303c..c82a9cdd5 100644 --- a/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts +++ b/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts @@ -111,9 +111,8 @@ export class OAuth2ProviderFormPage extends ModelForm { - +

${t`Valid redirect URLs after a successful authorization flow. Also specify any origins here for Implicit flows.`}