mfacosigner

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthID

func GetAuthID(r *http.Request) (string, error)

func NewUser

func NewUser(as *cosigner.AuthState) *user

Types

type MfaCosigner

type MfaCosigner struct {
	*cosigner.AuthCosigner
	// contains filtered or unexported fields
}

This is intended as an example. Both sessionMap and users are not concurrency safe.

func New

func New(signer crypto.Signer, alg jwa.SignatureAlgorithm, issuer, keyID string, cfg *webauthn.Config) (*MfaCosigner, error)

func (*MfaCosigner) BeginLogin

func (c *MfaCosigner) BeginLogin(authID string) (*protocol.CredentialAssertion, error)

func (*MfaCosigner) BeginRegistration

func (c *MfaCosigner) BeginRegistration(authID string) (*protocol.CredentialCreation, error)

func (*MfaCosigner) CheckIsRegistered

func (c *MfaCosigner) CheckIsRegistered(authID string) bool

func (*MfaCosigner) FinishLogin

func (c *MfaCosigner) FinishLogin(authID string, parsedResponse *protocol.ParsedCredentialAssertionData) (string, string, error)

func (*MfaCosigner) FinishRegistration

func (c *MfaCosigner) FinishRegistration(authID string, parsedResponse *protocol.ParsedCredentialCreationData) error

func (*MfaCosigner) IsRegistered

func (c *MfaCosigner) IsRegistered(userKey cosigner.UserKey) bool

type Server

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

func NewMfaCosignerHttpServer

func NewMfaCosignerHttpServer(serverUri, rpID, rpOrigin, RPDisplayName string) (*Server, error)

func (*Server) URI

func (s *Server) URI() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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