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.`}