From 16735e3cfe04fb9bc4a552063f1a2d8b076f1360 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 12 Feb 2024 12:52:31 +0100 Subject: [PATCH] Update django-oauth-toolkit requirement from ==2.2.* to ==2.3.* --- 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 f3f99bdc1..f934bd4af 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.2.*", 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 000000000..6a12c97b4 --- /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 845c92618..ed5858d4b 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