From f5373281ad7885025b5a2e1d811d01bf83336ff3 Mon Sep 17 00:00:00 2001 From: Raphael Lullis Date: Tue, 29 Apr 2025 04:09:59 +0200 Subject: [PATCH] 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 | 10 +++ oauth2_provider/apps.py | 2 +- oauth2_provider/checks.py | 13 ++++ oauth2_provider/exceptions.py | 4 + oauth2_provider/handlers.py | 18 +++++ ...0013_application_backchannel_logout_uri.py | 18 +++++ oauth2_provider/models.py | 68 ++++++++++++++++- 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 | 76 +++++++++++++++++++ tests/test_django_checks.py | 22 ++++++ tests/test_oidc_views.py | 12 +++ 18 files changed, 317 insertions(+), 44 deletions(-) create mode 100644 oauth2_provider/handlers.py create mode 100644 oauth2_provider/migrations/0013_application_backchannel_logout_uri.py create mode 100644 tests/test_backchannel_logout.py diff --git a/AUTHORS b/AUTHORS index 2d3f80527..90271a635 100644 --- a/AUTHORS +++ b/AUTHORS @@ -100,6 +100,7 @@ Peter Karman Peter McDonald Petr DlouhĂ˝ pySilver +Raphael Lullis Rodney Richardson Rustem Saiargaliev Rustem Saiargaliev diff --git a/CHANGELOG.md b/CHANGELOG.md index 32dd1734c..faa0d3586 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] + ### Added * #1506 Support for Wildcard Origin and Redirect URIs * #1586 Turkish language support added +* #1545 Support for OIDC Back-Channel Logout