Skip to content

Commit

Permalink
Add authenticator_attachment to responses
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterKale committed Nov 7, 2022
1 parent 9125800 commit e267aa9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webauthn/helpers/structs.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ class RegistrationCredential(WebAuthnBaseModel):
id: str
raw_id: bytes
response: AuthenticatorAttestationResponse
authenticator_attachment: Optional[AuthenticatorAttachment] = None
transports: Optional[List[AuthenticatorTransport]] = None
type: Literal[
PublicKeyCredentialType.PUBLIC_KEY
Expand Down Expand Up @@ -545,6 +546,7 @@ class AuthenticationCredential(WebAuthnBaseModel):
id: str
raw_id: bytes
response: AuthenticatorAssertionResponse
authenticator_attachment: Optional[AuthenticatorAttachment] = None
type: Literal[
PublicKeyCredentialType.PUBLIC_KEY
] = PublicKeyCredentialType.PUBLIC_KEY
Expand Down

0 comments on commit e267aa9

Please sign in to comment.