Documentation ¶
Index ¶
- func AuthenticatorAttachmentFromModel(authType model.AuthenticatorAttachment) protocol.AuthenticatorAttachment
- func UserVerificationFromModel(verification model.UserVerificationRequirement) protocol.UserVerificationRequirement
- func UserVerificationToModel(verification protocol.UserVerificationRequirement) model.UserVerificationRequirement
- func WebAuthNLoginToSessionData(webAuthN *model.WebAuthNLogin) webauthn.SessionData
- func WebAuthNToSessionData(webAuthN *model.WebAuthNToken) webauthn.SessionData
- func WebAuthNsToCredentials(webAuthNs []*model.WebAuthNToken) []webauthn.Credential
- type WebAuthN
- func (w *WebAuthN) BeginLogin(user *usr_model.User, userVerification usr_model.UserVerificationRequirement, ...) (*usr_model.WebAuthNLogin, error)
- func (w *WebAuthN) BeginRegistration(user *usr_model.User, accountName string, ...) (*usr_model.WebAuthNToken, error)
- func (w *WebAuthN) FinishLogin(user *usr_model.User, webAuthN *usr_model.WebAuthNLogin, credData []byte, ...) ([]byte, uint32, error)
- func (w *WebAuthN) FinishRegistration(user *usr_model.User, webAuthN *usr_model.WebAuthNToken, tokenName string, ...) (*usr_model.WebAuthNToken, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticatorAttachmentFromModel ¶
func AuthenticatorAttachmentFromModel(authType model.AuthenticatorAttachment) protocol.AuthenticatorAttachment
func UserVerificationFromModel ¶
func UserVerificationFromModel(verification model.UserVerificationRequirement) protocol.UserVerificationRequirement
func UserVerificationToModel ¶
func UserVerificationToModel(verification protocol.UserVerificationRequirement) model.UserVerificationRequirement
func WebAuthNLoginToSessionData ¶
func WebAuthNLoginToSessionData(webAuthN *model.WebAuthNLogin) webauthn.SessionData
func WebAuthNToSessionData ¶
func WebAuthNToSessionData(webAuthN *model.WebAuthNToken) webauthn.SessionData
func WebAuthNsToCredentials ¶
func WebAuthNsToCredentials(webAuthNs []*model.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 *usr_model.User, userVerification usr_model.UserVerificationRequirement, isLoginUI bool, webAuthNs ...*usr_model.WebAuthNToken) (*usr_model.WebAuthNLogin, error)
func (*WebAuthN) BeginRegistration ¶
func (w *WebAuthN) BeginRegistration(user *usr_model.User, accountName string, authType usr_model.AuthenticatorAttachment, userVerification usr_model.UserVerificationRequirement, isLoginUI bool, webAuthNs ...*usr_model.WebAuthNToken) (*usr_model.WebAuthNToken, error)
func (*WebAuthN) FinishLogin ¶
func (*WebAuthN) FinishRegistration ¶
Click to show internal directories.
Click to hide internal directories.