From 68b9ce9773a88a033f137ae103476993586e291b 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 | 5 +- 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 +++++++++++++++++++ ...0013_application_backchannel_logout_uri.py | 18 ++++ 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, 332 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 1f17685ee..f6fd54773 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [unreleased] -