Skip to content

Commit 0aa20a9

Browse files
diewdurbin
andauthored
Don't specify webauthn transports (#13076)
Co-authored-by: Ee Durbin <ewdurbin@gmail.com>
1 parent ae7a2d2 commit 0aa20a9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

warehouse/utils/webauthn.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
AttestationConveyancePreference,
2626
AuthenticationCredential,
2727
AuthenticatorSelectionCriteria,
28-
AuthenticatorTransport,
2928
PublicKeyCredentialDescriptor,
3029
RegistrationCredential,
3130
UserVerificationRequirement,
@@ -47,15 +46,7 @@ def _get_webauthn_user_public_key_credential_descriptors(user, *, rp_id):
4746
usage within the webauthn API.
4847
"""
4948
return [
50-
PublicKeyCredentialDescriptor(
51-
id=base64url_to_bytes(credential.credential_id),
52-
transports=[
53-
AuthenticatorTransport.USB,
54-
AuthenticatorTransport.NFC,
55-
AuthenticatorTransport.BLE,
56-
AuthenticatorTransport.INTERNAL,
57-
],
58-
)
49+
PublicKeyCredentialDescriptor(id=base64url_to_bytes(credential.credential_id))
5950
for credential in user.webauthn
6051
]
6152

0 commit comments

Comments
 (0)