mirror of
https://github.com/quantum5/nginx-krbauth.git
synced 2025-07-26 19:54:13 -04:00
Don't create cookies when mTLS is used
This commit is contained in:
parent
32cebf4691
commit
c0395eb97a
|
@ -192,7 +192,8 @@ def auth() -> Response:
|
|||
authorization = request.headers.get('Authorization', '')
|
||||
|
||||
if check_tls():
|
||||
return auth_success(context, next_url)
|
||||
# No cookie required since the check endpoint can trivially verify mTLS.
|
||||
return redirect(next_url, code=307)
|
||||
if ENABLE_GSSAPI and authorization.startswith('Negotiate '):
|
||||
return auth_spnego(context, next_url)
|
||||
if LDAP_USER_DN and authorization.startswith('Basic '):
|
||||
|
|
Loading…
Reference in a new issue