Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Update django-oauth-toolkit to major version 3 (#4941)
sarayourfriend33fa4b3c922a
diff --git a/api/api/migrations/0070_throttledapplication_allowed_origins_and_more.py b/api/api/migrations/0070_throttledapplication_allowed_origins_and_more.pynew file mode 100644index 000000000..723be0c60--- /dev/null+++ b/api/api/migrations/0070_throttledapplication_allowed_origins_and_more.py@@ -0,0 +1,28 @@+# Generated by Django 4.2.11 on 2024-09-17 07:26++from django.db import migrations, models+++class Migration(migrations.Migration):++ dependencies = [+ ('api', '0069_alter_contentsource_source_identifier'),+ ]++ operations = [+ migrations.AddField(+ model_name='throttledapplication',+ name='allowed_origins',+ field=models.TextField(blank=True, default='', help_text='Allowed origins list to enable CORS, space separated'),+ ),+ migrations.AddField(+ model_name='throttledapplication',+ name='hash_client_secret',+ field=models.BooleanField(default=True),+ ),+ migrations.AlterField(+ model_name='throttledapplication',+ name='post_logout_redirect_uris',+ field=models.TextField(blank=True, default='', help_text='Allowed Post Logout URIs list, space separated'),+ ),+ ]diff --git a/api/latest_migrations/api b/api/latest_migrations/apiindex 41cb750ce..16674cc9a 100644--- a/api/latest_migrations/api+++ b/api/latest_migrations/api@@ -2,4 +2,4 @@# If you have a merge conflict in this file, it means you need to run:# manage.py makemigrations --merge# in order to resolve the conflict between migrations.-0069_alter_contentsource_source_identifier+0070_throttledapplication_allowed_origins_and_morediff --git a/api/latest_migrations/oauth2_provider b/api/latest_migrations/oauth2_providerindex 678fd09fe..08af853d1 100644--- a/api/latest_migrations/oauth2_provider+++ b/api/latest_migrations/oauth2_provider@@ -2,4 +2,4 @@# If you have a merge conflict in this file, it means you need to run:# manage.py makemigrations --merge# in order to resolve the conflict between migrations.-0007_application_post_logout_redirect_uris+0012_add_token_checksumdiff --git a/api/pdm.lock b/api/pdm.lockindex 4d439a208..5771ea801 100644--- a/api/pdm.lock+++ b/api/pdm.lock@@ -5,7 +5,7 @@groups = ["default", "dev", "overrides", "test"]strategy = ["inherit_metadata"]lock_version = "4.5.0"-content_hash = "sha256:56b7ee9bb04cad671dd572c9e57b807fa3e3abb4fdf8233665bdc952b9b5a1d1"+content_hash = "sha256:cbd8d79a6080fa3f047a2343718794ef8934a69f5a3984cad305254ac0d4e75c"[[metadata.targets]]requires_python = "==3.11.*"@@ -459,18 +459,19 @@ files = [[[package]]name = "django-oauth-toolkit"-version = "2.3.0"+version = "3.0.1"+requires_python = ">=3.8"summary = "OAuth2 Provider for Django"groups = ["default"]dependencies = [- "django!=4.0.0,>=2.2",- "jwcrypto>=0.8.0",- "oauthlib>=3.1.0",+ "django>=4.2",+ "jwcrypto>=1.5.0",+ "oauthlib>=3.2.2","requests>=2.13.0",]files = [- {file = "django-oauth-toolkit-2.3.0.tar.gz", hash = "sha256:cf1cb1a5744672e6bd7d66b4a110a463bcef9cf5ed4f27e29682cc6a4d0df1ed"},- {file = "django_oauth_toolkit-2.3.0-py3-none-any.whl", hash = "sha256:47dfeab97ec21496f307c2cf3468e64ca08897fa499bf3104366d32005c9111d"},+ {file = "django_oauth_toolkit-3.0.1-py3-none-any.whl", hash = "sha256:3ef00b062a284f2031b0732b32dc899e3bbf0eac221bbb1cffcb50b8932e55ed"},+ {file = "django_oauth_toolkit-3.0.1.tar.gz", hash = "sha256:7200e4a9fb229b145a6d808cbf0423b6d69a87f68557437733eec3c0cf71db02"},][[package]]diff --git a/api/pyproject.toml b/api/pyproject.tomlindex 63b6d43e3..f03b6b8de 100644--- a/api/pyproject.toml+++ b/api/pyproject.toml@@ -18,7 +18,7 @@ dependencies = ["django-asgi-lifespan >=0.3.1, <0.4","django-cors-headers >=4.3.1, <5","django-migrations-git-conflicts >=1.0, <2",- "django-oauth-toolkit >=2.3.0, <3",+ "django-oauth-toolkit >=3.0.1, <4","django-redis >=5.4.0, <6","django-split-settings >=1.2.0, <2","django-structlog >=8.0.0, <9",