webauthn

package
v1.80.0-workflow-dispa... Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 Config

type Config struct {
	ID          string
	Origin      string
	DisplayName string
}

type WebAuthN

type WebAuthN struct {
	// contains filtered or unexported fields
}

func StartServer

func StartServer(config Config) (*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 (w *WebAuthN) FinishLogin(user *domain.Human, webAuthN *domain.WebAuthNLogin, credData []byte, isLoginUI bool, webAuthNs ...*domain.WebAuthNToken) ([]byte, uint32, error)

func (*WebAuthN) FinishRegistration

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

Jump to

Keyboard shortcuts

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