webauthn

package
v0.109.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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, authType usr_model.AuthenticatorAttachment, userVerification usr_model.UserVerificationRequirement, isLoginUI bool, webAuthNs ...*usr_model.WebAuthNToken) (*usr_model.WebAuthNToken, error)

func (*WebAuthN) FinishLogin

func (w *WebAuthN) FinishLogin(user *usr_model.User, webAuthN *usr_model.WebAuthNLogin, credData []byte, isLoginUI bool, webAuthNs ...*usr_model.WebAuthNToken) ([]byte, uint32, error)

func (*WebAuthN) FinishRegistration

func (w *WebAuthN) FinishRegistration(user *usr_model.User, webAuthN *usr_model.WebAuthNToken, tokenName string, credData []byte, isLoginUI bool) (*usr_model.WebAuthNToken, error)

Jump to

Keyboard shortcuts

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