Versions in this module Expand all Collapse all v1 v1.0.3 Aug 7, 2024 Changes in this version type AuthenticatorOptions + BackupEligible bool + BackupState bool type Credential + func NewCredentialWithImportedKey(keyType KeyType, keyData []byte) Credential type Key + Data []byte + func (k *Key) AttestationData() []byte + func (k *Key) Sign(digest []byte) (signature []byte, err error) v1.0.2 Dec 18, 2022 Changes in this version type AuthenticatorOptions + UserHandle []byte v1.0.1 Nov 13, 2022 Changes in this version + func CreateAssertionResponse(rp RelyingParty, auth Authenticator, cred Credential, options AssertionOptions) string + func CreateAttestationResponse(rp RelyingParty, auth Authenticator, cred Credential, ...) string + type AssertionOptions struct + AllowCredentials []string + Challenge []byte + RelyingPartyID string + func ParseAssertionOptions(str string) (assertionOptions *AssertionOptions, err error) + type AttestationOptions struct + Challenge []byte + ExcludeCredentials []string + RelyingPartyID string + RelyingPartyName string + UserDisplayName string + UserID string + UserName string + func ParseAttestationOptions(str string) (attestationOptions *AttestationOptions, err error) + type Authenticator struct + Aaguid [16]byte + Credentials []Credential + Options AuthenticatorOptions + func NewAuthenticator() Authenticator + func NewAuthenticatorWithOptions(options AuthenticatorOptions) Authenticator + func (a *Authenticator) AddCredential(cred Credential) + func (a *Authenticator) FindAllowedCredential(options AssertionOptions) *Credential + type AuthenticatorOptions struct + UserNotPresent bool + UserNotVerified bool + type Credential struct + Counter uint32 + ID []byte + Key Key + func NewCredential(keyType KeyType) Credential + func (c *Credential) IsAllowedForAssertion(options AssertionOptions) bool + func (c *Credential) IsExcludedForAttestation(options AttestationOptions) bool + type Key struct + SigningKey SigningKey + Type KeyType + type KeyType int + const KeyTypeEC2 + const KeyTypeRSA + type RelyingParty struct + ID string + Name string + Origin string + type SigningKey interface + KeyData func() []byte + Sign func(digest []byte) (signature []byte, err error) v1.0.0 Oct 11, 2022