intern

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL