mirror of
https://github.com/quantum5/nginx-krbauth.git
synced 2025-07-27 04:04:14 -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', '')
|
authorization = request.headers.get('Authorization', '')
|
||||||
|
|
||||||
if check_tls():
|
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 '):
|
if ENABLE_GSSAPI and authorization.startswith('Negotiate '):
|
||||||
return auth_spnego(context, next_url)
|
return auth_spnego(context, next_url)
|
||||||
if LDAP_USER_DN and authorization.startswith('Basic '):
|
if LDAP_USER_DN and authorization.startswith('Basic '):
|
||||||
|
|
Loading…
Reference in a new issue