Documentation ¶
Index ¶
- func WebauthnCredentialFromModel(credential *models.WebauthnCredential) *webauthn.Credential
- func WebauthnCredentialToModel(credential *webauthn.Credential, userId uuid.UUID, backupEligible bool, ...) *models.WebauthnCredential
- func WebauthnSessionDataFromModel(data *models.WebauthnSessionData) *webauthn.SessionData
- func WebauthnSessionDataToModel(data *webauthn.SessionData, operation models.Operation) *models.WebauthnSessionData
- type WebauthnUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WebauthnCredentialFromModel ¶
func WebauthnCredentialFromModel(credential *models.WebauthnCredential) *webauthn.Credential
func WebauthnCredentialToModel ¶
func WebauthnCredentialToModel(credential *webauthn.Credential, userId uuid.UUID, backupEligible bool, backupState bool, authenticatorMetadata mapper.AuthenticatorMetadata) *models.WebauthnCredential
func WebauthnSessionDataFromModel ¶
func WebauthnSessionDataFromModel(data *models.WebauthnSessionData) *webauthn.SessionData
func WebauthnSessionDataToModel ¶
func WebauthnSessionDataToModel(data *webauthn.SessionData, operation models.Operation) *models.WebauthnSessionData
Types ¶
type WebauthnUser ¶
type WebauthnUser struct { UserId uuid.UUID Email string WebauthnCredentials []models.WebauthnCredential }
func NewWebauthnUser ¶
func NewWebauthnUser(user models.User, credentials []models.WebauthnCredential) (*WebauthnUser, error)
func (*WebauthnUser) WebAuthnCredentials ¶
func (u *WebauthnUser) WebAuthnCredentials() []webauthn.Credential
func (*WebauthnUser) WebAuthnDisplayName ¶
func (u *WebauthnUser) WebAuthnDisplayName() string
func (*WebauthnUser) WebAuthnID ¶
func (u *WebauthnUser) WebAuthnID() []byte
func (*WebauthnUser) WebAuthnIcon ¶
func (u *WebauthnUser) WebAuthnIcon() string
func (*WebauthnUser) WebAuthnName ¶
func (u *WebauthnUser) WebAuthnName() string
Click to show internal directories.
Click to hide internal directories.