Documentation ¶
Index ¶
- func AuthenticatorAttachmentFromDomain(authType domain.AuthenticatorAttachment) protocol.AuthenticatorAttachment
- func UserVerificationFromDomain(verification domain.UserVerificationRequirement) protocol.UserVerificationRequirement
- func UserVerificationToDomain(verification protocol.UserVerificationRequirement) domain.UserVerificationRequirement
- func WebAuthNLoginToSessionData(webAuthN *domain.WebAuthNLogin) webauthn.SessionData
- func WebAuthNToSessionData(webAuthN *domain.WebAuthNToken) webauthn.SessionData
- func WebAuthNsToCredentials(webAuthNs []*domain.WebAuthNToken) []webauthn.Credential
- type Config
- func (w *Config) BeginLogin(ctx context.Context, user *domain.Human, ...) (*domain.WebAuthNLogin, error)
- func (w *Config) BeginRegistration(ctx context.Context, user *domain.Human, accountName string, ...) (*domain.WebAuthNToken, error)
- func (w *Config) FinishLogin(ctx context.Context, user *domain.Human, webAuthN *domain.WebAuthNLogin, ...) ([]byte, uint32, error)
- func (w *Config) FinishRegistration(ctx context.Context, user *domain.Human, webAuthN *domain.WebAuthNToken, ...) (*domain.WebAuthNToken, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticatorAttachmentFromDomain ¶
func AuthenticatorAttachmentFromDomain(authType domain.AuthenticatorAttachment) protocol.AuthenticatorAttachment
func UserVerificationFromDomain ¶
func UserVerificationFromDomain(verification domain.UserVerificationRequirement) protocol.UserVerificationRequirement
func UserVerificationToDomain ¶
func UserVerificationToDomain(verification protocol.UserVerificationRequirement) domain.UserVerificationRequirement
func WebAuthNLoginToSessionData ¶
func WebAuthNLoginToSessionData(webAuthN *domain.WebAuthNLogin) webauthn.SessionData
func WebAuthNToSessionData ¶
func WebAuthNToSessionData(webAuthN *domain.WebAuthNToken) webauthn.SessionData
func WebAuthNsToCredentials ¶
func WebAuthNsToCredentials(webAuthNs []*domain.WebAuthNToken) []webauthn.Credential
Types ¶
type Config ¶
func (*Config) BeginLogin ¶
func (w *Config) BeginLogin(ctx context.Context, user *domain.Human, userVerification domain.UserVerificationRequirement, webAuthNs ...*domain.WebAuthNToken) (*domain.WebAuthNLogin, error)
func (*Config) BeginRegistration ¶
func (w *Config) BeginRegistration(ctx context.Context, user *domain.Human, accountName string, authType domain.AuthenticatorAttachment, userVerification domain.UserVerificationRequirement, isLoginUI bool, webAuthNs ...*domain.WebAuthNToken) (*domain.WebAuthNToken, error)
func (*Config) FinishLogin ¶
func (*Config) FinishRegistration ¶
Click to show internal directories.
Click to hide internal directories.