Do not send the transports to the js part since we have not stored them previously
This commit is contained in:
parent
99d31698e7
commit
ff33380bed
|
@ -153,6 +153,12 @@ def fido():
|
||||||
webauthn_users, challenge
|
webauthn_users, challenge
|
||||||
)
|
)
|
||||||
webauthn_assertion_options = webauthn_assertion_options.assertion_dict
|
webauthn_assertion_options = webauthn_assertion_options.assertion_dict
|
||||||
|
try:
|
||||||
|
# HACK: We need to upgrade to webauthn > 1 so it can support specifying the transports
|
||||||
|
del webauthn_assertion_options["allowCredentials"][0]["transports"]
|
||||||
|
except KeyError:
|
||||||
|
# Should never happen but...
|
||||||
|
pass
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"auth/fido.html",
|
"auth/fido.html",
|
||||||
|
|
Loading…
Reference in a new issue