Skip to content

Commit

Permalink
🐛 [#4435] Exempt legacy OIDC URLs from sessionrefresh
Browse files Browse the repository at this point in the history
by default, the OIDC endpoints that are used are marked as exempt from SessionRefresh, but this caused infinite redirects in case the legacy URLs were used
  • Loading branch information
stevenbal committed Jul 2, 2024
1 parent ad725c2 commit d1a3f14
Showing 1 changed file with 9 additions and 0 deletions.
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

0 comments on commit d1a3f14

Please sign in to comment.