Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [#4435] Fix infinite redirect on sessionrefresh for OIDC #4438

Merged
merged 2 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ django-csp==3.8
# via -r requirements/base.in
django-csp-reports==1.8.1
# via -r requirements/base.in
django-digid-eherkenning[oidc]==0.15.0
django-digid-eherkenning[oidc]==0.16.0
# via -r requirements/base.in
django-filter==23.2
# via -r requirements/base.in
Expand Down Expand Up @@ -334,7 +334,7 @@ maykin-python3-saml==1.16.1
# via django-digid-eherkenning
mozilla-django-oidc==4.0.0
# via mozilla-django-oidc-db
mozilla-django-oidc-db==0.18.1
mozilla-django-oidc-db==0.19.0
# via
# -r requirements/base.in
# django-digid-eherkenning
Expand Down
4 changes: 2 additions & 2 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ django-csp-reports==1.8.1
# via
# -c requirements/base.txt
# -r requirements/base.txt
django-digid-eherkenning[oidc]==0.15.0
django-digid-eherkenning[oidc]==0.16.0
# via
# -c requirements/base.txt
# -r requirements/base.txt
Expand Down Expand Up @@ -618,7 +618,7 @@ mozilla-django-oidc==4.0.0
# -c requirements/base.txt
# -r requirements/base.txt
# mozilla-django-oidc-db
mozilla-django-oidc-db==0.18.1
mozilla-django-oidc-db==0.19.0
# via
# -c requirements/base.txt
# -r requirements/base.txt
Expand Down
4 changes: 2 additions & 2 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ django-csp-reports==1.8.1
# -r requirements/ci.txt
django-debug-toolbar==4.3.0
# via -r requirements/dev.in
django-digid-eherkenning[oidc]==0.15.0
django-digid-eherkenning[oidc]==0.16.0
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
Expand Down Expand Up @@ -693,7 +693,7 @@ mozilla-django-oidc==4.0.0
# -c requirements/ci.txt
# -r requirements/ci.txt
# mozilla-django-oidc-db
mozilla-django-oidc-db==0.18.1
mozilla-django-oidc-db==0.19.0
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
Expand Down
4 changes: 2 additions & 2 deletions requirements/extensions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ django-csp-reports==1.8.1
# via
# -c requirements/base.in
# -r requirements/base.txt
django-digid-eherkenning[oidc]==0.15.0
django-digid-eherkenning[oidc]==0.16.0
# via
# -c requirements/base.in
# -r requirements/base.txt
Expand Down Expand Up @@ -515,7 +515,7 @@ mozilla-django-oidc==4.0.0
# via
# -r requirements/base.txt
# mozilla-django-oidc-db
mozilla-django-oidc-db==0.18.1
mozilla-django-oidc-db==0.19.0
# via
# -c requirements/base.in
# -r requirements/base.txt
Expand Down
9 changes: 9 additions & 0 deletions src/openforms/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,15 @@
# Access token required for performing the Token exchange
OIDC_STORE_ACCESS_TOKEN = True

# Paths that are exempt from the SessionRefresh middleware
# these must be explicitly added to avoid infinite redirects from happening (#4435)
if _USE_LEGACY_OIDC_ENDPOINTS:
OIDC_EXEMPT_URLS = [
"legacy_oidc:oidc_authentication_init",
"legacy_oidc:oidc_authentication_callback",
"legacy_oidc:oidc_logout",
]

# TODO: remove once 2.7 is released, this is required for data migration(s)
MOZILLA_DJANGO_OIDC_DB_CACHE = "solo"

Expand Down
Loading