controllers

package
v0.0.0-...-db47865 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebAuthNController

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

WebAuthNController manages Webauthn Registrations and Logins. Note: currently Apple TouchID, Windows Hello and any platform TPM are all treated and configured like an Apple TouchID device

func New

func New(db *gorm.DB, config *models.Config) *WebAuthNController

New creates an instance of the controller and sets its DB handle

func (*WebAuthNController) BeginLogin

func (m *WebAuthNController) BeginLogin(w http.ResponseWriter, r *http.Request)

func (*WebAuthNController) BeginRegister

func (m *WebAuthNController) BeginRegister(w http.ResponseWriter, r *http.Request)

BeginRegister starts the registration of a new Webauthn device or browser

func (*WebAuthNController) FinishLogin

func (m *WebAuthNController) FinishLogin(w http.ResponseWriter, r *http.Request)

func (*WebAuthNController) FinishRegister

func (m *WebAuthNController) FinishRegister(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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