Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUserID ¶
func GenerateUserID() string
Types ¶
type Credential ¶
type Credential struct { gorm.Model Name string WebauthnCredential webauthn.Credential `gorm:"serializer:json"` UserID string }
func (*Credential) UpdateSignCount ¶
func (c *Credential) UpdateSignCount(db *gorm.DB, signCount uint32)
type Session ¶
type Session struct { gorm.Model ExpirationTime time.Time `gorm:"serializer:json"` SessionKey string `gorm:"primaryKey"` }
func GenerateSession ¶
type User ¶
type User struct { gorm.Model ID string `gorm:"primaryKey"` Username string IsAdmin bool Credentials []Credential }
Struct that implements the webauthn user interface to store valid credentials
func (User) CredentialExclusionList ¶
func (u User) CredentialExclusionList() []protocol.CredentialDescriptor
func (User) WebAuthnCredentials ¶
func (u User) WebAuthnCredentials() []webauthn.Credential
func (User) WebAuthnDisplayName ¶
func (User) WebAuthnID ¶
func (User) WebAuthnIcon ¶
func (User) WebAuthnName ¶
Click to show internal directories.
Click to hide internal directories.