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 WebAuthN
- func (w *WebAuthN) BeginLogin(user *domain.Human, userVerification domain.UserVerificationRequirement, ...) (*domain.WebAuthNLogin, error)
- func (w *WebAuthN) BeginRegistration(user *domain.Human, accountName string, ...) (*domain.WebAuthNToken, error)
- func (w *WebAuthN) FinishLogin(user *domain.Human, webAuthN *domain.WebAuthNLogin, credData []byte, ...) ([]byte, uint32, error)
- func (w *WebAuthN) FinishRegistration(user *domain.Human, webAuthN *domain.WebAuthNToken, tokenName string, ...) (*domain.WebAuthNToken, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticatorAttachmentFromDomain ¶ added in v0.119.0
func AuthenticatorAttachmentFromDomain(authType domain.AuthenticatorAttachment) protocol.AuthenticatorAttachment
func UserVerificationFromDomain ¶ added in v0.119.0
func UserVerificationFromDomain(verification domain.UserVerificationRequirement) protocol.UserVerificationRequirement
func UserVerificationToDomain ¶ added in v0.119.0
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 WebAuthN ¶
type WebAuthN struct {
// contains filtered or unexported fields
}
func StartServer ¶
func StartServer(sd systemdefaults.WebAuthN) (*WebAuthN, error)
func (*WebAuthN) BeginLogin ¶
func (w *WebAuthN) BeginLogin(user *domain.Human, userVerification domain.UserVerificationRequirement, isLoginUI bool, webAuthNs ...*domain.WebAuthNToken) (*domain.WebAuthNLogin, error)
func (*WebAuthN) BeginRegistration ¶
func (w *WebAuthN) BeginRegistration(user *domain.Human, accountName string, authType domain.AuthenticatorAttachment, userVerification domain.UserVerificationRequirement, isLoginUI bool, webAuthNs ...*domain.WebAuthNToken) (*domain.WebAuthNToken, error)
func (*WebAuthN) FinishLogin ¶
func (*WebAuthN) FinishRegistration ¶
Click to show internal directories.
Click to hide internal directories.