From 648326518c847a6f7db96937de2c1de941303574 Mon Sep 17 00:00:00 2001 From: Raphael Lullis Date: Tue, 29 Apr 2025 04:09:59 +0200 Subject: [PATCH 1/2] Backchannel Logout - Add migration to add backchannel logout support - Add parameters related to backchannel logout on OIDC Discovery View - Change application creation and update form - Change template that renders information about the application --- AUTHORS | 1 + CHANGELOG.md | 2 +- docs/oidc.rst | 23 +++++ docs/settings.rst | 16 ++++ oauth2_provider/apps.py | 2 +- oauth2_provider/checks.py | 13 +++ oauth2_provider/exceptions.py | 4 + oauth2_provider/handlers.py | 84 +++++++++++++++++++ ...0014_application_backchannel_logout_uri.py | 19 +++++ oauth2_provider/models.py | 4 + oauth2_provider/settings.py | 4 + .../oauth2_provider/application_detail.html | 5 ++ oauth2_provider/views/application.py | 70 +++++++--------- oauth2_provider/views/oidc.py | 7 ++ tests/presets.py | 6 ++ tests/test_backchannel_logout.py | 80 ++++++++++++++++++ tests/test_django_checks.py | 22 +++++ tests/test_oidc_views.py | 12 +++ 18 files changed, 330 insertions(+), 44 deletions(-) create mode 100644 oauth2_provider/handlers.py create mode 100644 oauth2_provider/migrations/0014_application_backchannel_logout_uri.py create mode 100644 tests/test_backchannel_logout.py diff --git a/AUTHORS b/AUTHORS index 4ebe787cd..cd249c8b0 100644 --- a/AUTHORS +++ b/AUTHORS @@ -103,6 +103,7 @@ Peter McDonald Petr DlouhĂ˝ pySilver @realsuayip +Raphael Lullis Rodney Richardson Rustem Saiargaliev Rustem Saiargaliev diff --git a/CHANGELOG.md b/CHANGELOG.md index a29772c13..bff9310a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Support for Django 5.2 * Support for Python 3.14 (Django >= 5.2.8) * #1539 Add device authorization grant support - +* #1545 Support for OIDC Back-Channel Logout