From f87e089734b773dbc712312e0a856f0039a7920f Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 13 Feb 2024 12:34:29 +0100 Subject: [PATCH] Update django-oauth-toolkit requirement from ==2.2.* to ==2.3.* (#3882) --- pyproject.toml | 2 +- ...uthapplication_post_logout_redirect_uris.py | 18 ++++++++++++++++++ src/pretix/api/models.py | 5 +++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 src/pretix/api/migrations/0012_oauthapplication_post_logout_redirect_uris.py diff --git a/pyproject.toml b/pyproject.toml index eb0fe0a8bb..ce412c09a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ dependencies = [ "django-libsass==0.9", "django-localflavor==4.0", "django-markup", - "django-oauth-toolkit==2.2.*", + "django-oauth-toolkit==2.3.*", "django-otp==1.2.*", "django-phonenumber-field==7.1.*", "django-redis==5.4.*", diff --git a/src/pretix/api/migrations/0012_oauthapplication_post_logout_redirect_uris.py b/src/pretix/api/migrations/0012_oauthapplication_post_logout_redirect_uris.py new file mode 100644 index 0000000000..6a12c97b44 --- /dev/null +++ b/src/pretix/api/migrations/0012_oauthapplication_post_logout_redirect_uris.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.10 on 2024-02-12 11:52 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("pretixapi", "0011_bigint"), + ] + + operations = [ + migrations.AddField( + model_name="oauthapplication", + name="post_logout_redirect_uris", + field=models.TextField(default=""), + ), + ] diff --git a/src/pretix/api/models.py b/src/pretix/api/models.py index 845c926185..ed5858d4b8 100644 --- a/src/pretix/api/models.py +++ b/src/pretix/api/models.py @@ -42,6 +42,11 @@ class OAuthApplication(AbstractApplication): verbose_name=_("Redirection URIs"), help_text=_("Allowed URIs list, space separated") ) + post_logout_redirect_uris = models.TextField( + blank=True, validators=[URIValidator], + help_text=_("Allowed Post Logout URIs list, space separated"), + default="", + ) client_id = models.CharField( verbose_name=_("Client ID"), max_length=100, unique=True, default=generate_client_id, db_index=True