- From: Arian van Putten via GitHub <sysbot+gh@w3.org>
- Date: Mon, 11 Sep 2023 08:57:18 +0000
- To: public-webauthn@w3.org
I actually found the union awkward when translating this to go. These are the types my RP uses in Go. Perhaps we can use it as inspiration for the IDL ```go type PublicKeyCredential struct { ID Base64URLString `json:"id"` AuthenticatorAttachment string `json:"authenticatorAttachment"` ClientExtensionResults AuthenticationExtensionsClientOutputs `json:"clientExtensionResults"` Type string `json:"type"` Response Response `json:"response"` } type Response struct { AuthenticatorAttestationResponse AuthenticatorAssertionResponse ClientData Base64URLString `json:"clientDataJSON"` AuthenticatorData Base64URLString `json:"authenticatorData"` } ``` ```go type AuthenticatorAttestationResponse struct { AttestationObject Base64URLString `json:"attestationObject"` Transports []string `json:"transports"` PublicKey Base64URLString `json:"publicKey"` PublicKeyAlgorithm string `json:"publicKeyAlgorithm"` } type AuthenticatorAssertionResponse struct { Signature Base64URLString `json:"signature"` UserHandle *Base64URLString `json:"userHandle"` } ``` -- GitHub Notification of comment by arianvp Please view or discuss this issue at https://github.com/w3c/webauthn/issues/1958#issuecomment-1713462380 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 11 September 2023 08:57:20 UTC