From 18110eee0088c9c56feb49aec2cdc2dd2c3f5847 Mon Sep 17 00:00:00 2001 From: hka-schaefer Date: Thu, 26 Feb 2026 16:30:46 +0100 Subject: [PATCH] Set default for LOGOUT_REDIRECT_URL LOGOUT_REDIRECT_URL is commented in netbox.env, which leads to an error during logout. Setting a default prevents that error --- configuration/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/configuration.py b/configuration/configuration.py index 5fb5206..03c5d91 100644 --- a/configuration/configuration.py +++ b/configuration/configuration.py @@ -322,7 +322,7 @@ SOCIAL_AUTH_OIDC_OIDC_ENDPOINT = environ.get('SOCIAL_AUTH_OIDC_OIDC_ENDPOINT') SOCIAL_AUTH_OIDC_KEY = environ.get('SOCIAL_AUTH_OIDC_KEY') SOCIAL_AUTH_OIDC_SECRET = _read_secret('oidc_secret', environ.get('SOCIAL_AUTH_OIDC_SECRET', '')) SOCIAL_AUTH_OIDC_SCOPE = _environ_get_and_map('SOCIAL_AUTH_OIDC_SCOPE', '', _AS_LIST) -LOGOUT_REDIRECT_URL = environ.get('LOGOUT_REDIRECT_URL') +LOGOUT_REDIRECT_URL = environ.get('LOGOUT_REDIRECT_URL','/') SOCIAL_AUTH_OIDC_JWT_ALGORITHMS = _environ_get_and_map('SOCIAL_AUTH_OIDC_JWT_ALGORITHMS', "RS256", _AS_LIST) # This repository is used to check whether there is a new release of NetBox available. Set to None to disable the