mirror of
https://github.com/xcat2/confluent.git
synced 2025-03-20 10:27:45 +00:00
Fix consistency of sessionid
Regardless of whether the client uses it as a session id or not, the fact remains a sessionid is assigned. Pass the session id in the auth data even if the client did not send it.
This commit is contained in:
parent
5881ad8b68
commit
eb02247a58
@ -306,8 +306,8 @@ def _authorize_request(env, operation):
|
||||
auditmsg['tenant'] = authdata[3]
|
||||
authinfo['tenant'] = authdata[3]
|
||||
auditmsg['user'] = authdata[2]
|
||||
if sessionid is not None:
|
||||
authinfo['sessionid'] = sessionid
|
||||
if sessid is not None:
|
||||
authinfo['sessionid'] = sessid
|
||||
if not skiplog:
|
||||
auditlog.log(auditmsg)
|
||||
if 'csrftoken' in httpsessions[sessid]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user