Documentation ¶
Index ¶
- type User
- func (u *User) AddCredential(cred webauthn.Credential)
- func (u User) CredentialById(id []byte) (*webauthn.Credential, error)
- func (u User) Marshal() (string, error)
- func (u User) UserRegistrationOptions(credCreateOptions *protocol.PublicKeyCredentialCreationOptions)
- func (u User) WebAuthnCredentials() []webauthn.Credential
- func (u User) WebAuthnDisplayName() string
- func (u User) WebAuthnID() []byte
- func (u User) WebAuthnIcon() string
- func (u User) WebAuthnName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID uint64 Name string DisplayName string Credentials []webauthn.Credential }
func UnmarshalUser ¶
func (*User) AddCredential ¶
func (u *User) AddCredential(cred webauthn.Credential)
func (User) CredentialById ¶
func (u User) CredentialById(id []byte) (*webauthn.Credential, error)
Return user credential by ID
func (User) UserRegistrationOptions ¶
func (u User) UserRegistrationOptions(credCreateOptions *protocol.PublicKeyCredentialCreationOptions)
Set user registration options, such as excluding registered credentials
func (User) WebAuthnCredentials ¶
func (u User) WebAuthnCredentials() []webauthn.Credential
func (User) WebAuthnDisplayName ¶
func (User) WebAuthnID ¶
func (User) WebAuthnIcon ¶
WebAuthnIcon is not (yet) implemented
func (User) WebAuthnName ¶
Click to show internal directories.
Click to hide internal directories.