2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

account for timeout

This commit is contained in:
tkucherera 2024-09-12 10:10:53 -04:00
parent fa940579f1
commit db381d377b

View File

@ -394,7 +394,9 @@ def handle_api_request(url, env, start_response, username, cfm, headers, reqbody
username = username.encode('utf8')
req = json.loads(reqbody)
rsp = authentication_response(req, username)
if start_response:
if rsp == 'Timeout':
start_response('408 Timeout', headers)
elif rsp['verified'] and start_response:
start_response('200 OK', headers)
sessinfo = {'username': username}
if 'authtoken' in authorized: