Update django-oauth-toolkit requirement from ==2.2.* to ==2.3.* (#3882)

This commit is contained in:
Raphael Michel
2024-02-13 12:34:29 +01:00
committed by GitHub
parent 0fad7472c0
commit f87e089734
3 changed files with 24 additions and 1 deletions

View File

@@ -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.*",

View File

@@ -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=""),
),
]

View File

@@ -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