2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-08-03 07:57:02 +00:00

Fix spurious log on impossible passkey requests

This commit is contained in:
Jarrod Johnson
2026-07-29 09:03:56 -04:00
parent d7dcb07a3f
commit 5111652e01
+6 -1
View File
@@ -1031,7 +1031,12 @@ async def resourcehandler_backend(req, make_response):
if not webauthn:
rsp = await make_response('text/plain', 501, 'Not Implemented')
return rsp
wauthbody = await webauthn.handle_api_request(url, req, authorized['username'], cfgmgr, reqbody, authorized)
try:
wauthbody = await webauthn.handle_api_request(url, req, authorized['username'], cfgmgr, reqbody, authorized)
except Exception as e:
rsp = await make_response('text/plain', 401, 'Unauthorized')
await rsp.write(json.dumps({'error': 'Unable to complete passkey authentication'}).encode('utf8'))
return rsp
return await make_response(body=wauthbody)
resource = '.' + url[url.rindex('/'):]
lquerydict = copy.deepcopy(querydict)