auth: check for additional cookie default value for auth selection

This commit is contained in:
Helmut Merz 2026-02-23 16:29:06 +01:00
parent 4572195ef5
commit a548575704

View file

@ -54,7 +54,8 @@ def getConfigAuthMethod():
return getattr(config, 'authentication_method', 'legacy') return getattr(config, 'authentication_method', 'legacy')
def getAuthMethodCookieValue(request): def getAuthMethodCookieValue(request):
return request.cookies.get('loops_auth_method') or 'legacy' default = getattr(config, 'authentication_method_cookie_default', 'legacy')
return request.cookies.get('loops_auth_method') or default
# OIDC authentication # OIDC authentication