Merge pull request #932 from simple-login/ac-fix-webauthn-transport

Do not send the transports to the js part since we have not stored them previously
This commit is contained in:
Adrià Casajús 2022-04-28 16:53:00 +02:00 committed by GitHub
commit 46646f4ee2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -153,6 +153,13 @@ def fido():
webauthn_users, challenge
)
webauthn_assertion_options = webauthn_assertion_options.assertion_dict
try:
# HACK: We need to upgrade to webauthn > 1 so it can support specifying the transports
for credential in webauthn_assertion_options["allowCredentials"]:
del credential["transports"]
except KeyError:
# Should never happen but...
pass
return render_template(
"auth/fido.html",