Documentation ¶
Index ¶
- type Manager
- type User
- func (u *User) AddCredential(cred webauthn.Credential)
- func (u *User) Create(name string, displayName string) (*User, error)
- func (u *User) CredentialExcludeList() []protocol.CredentialDescriptor
- func (u *User) GetByName(name string) (*User, error)
- func (u *User) GetOrCreate(name string, displayName string) (*User, error)
- 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 {
// contains filtered or unexported fields
}
User represents the user model It implements the webauthn.User interface
func (*User) AddCredential ¶
func (u *User) AddCredential(cred webauthn.Credential)
AddCredential associates the credential to the user
func (*User) CredentialExcludeList ¶
func (u *User) CredentialExcludeList() []protocol.CredentialDescriptor
CredentialExcludeList returns a CredentialDescriptor array filled with all a user's credentials
func (*User) GetOrCreate ¶
func (*User) WebAuthnCredentials ¶
func (u *User) WebAuthnCredentials() []webauthn.Credential
WebAuthnCredentials returns credentials owned by the user
func (User) WebAuthnDisplayName ¶
WebAuthnDisplayName returns the user's display name
func (User) WebAuthnIcon ¶
WebAuthnIcon is not (yet) implemented
func (User) WebAuthnName ¶
WebAuthnName returns the user's username
Click to show internal directories.
Click to hide internal directories.