auth: check for additional cookie default value for auth selection
This commit is contained in:
parent
4572195ef5
commit
a548575704
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue