Documentation
¶
Index ¶
- type WebAuthNController
- func (m *WebAuthNController) BeginLogin(w http.ResponseWriter, r *http.Request)
- func (m *WebAuthNController) BeginRegister(w http.ResponseWriter, r *http.Request)
- func (m *WebAuthNController) FinishLogin(w http.ResponseWriter, r *http.Request)
- func (m *WebAuthNController) FinishRegister(w http.ResponseWriter, r *http.Request)
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)
Click to show internal directories.
Click to hide internal directories.