Skip to content
Snippets Groups Projects

Draft: Webauthn

Merged ale requested to merge webauthn into master
2 files
+ 41
30
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 3
9
@@ -548,18 +548,12 @@ func (s *Server) finishWebAuthnLogin(user *backend.User, sessionData *webauthn.S
wuser := newWebAuthnUser(user)
// Attempt non-legacy validation first.
cred, err := s.webAuthnHandler.ValidateLogin(wuser, *sessionData, parsedResponse)
_, err := s.webAuthnHandler.ValidateLogin(wuser, *sessionData, parsedResponse)
if err != nil {
cred, err = s.compatWebAuthnHandler.ValidateLogin(wuser, *sessionData, parsedResponse)
if err != nil {
return err
}
_, err = s.compatWebAuthnHandler.ValidateLogin(wuser, *sessionData, parsedResponse)
}
// What do we do with this credential?
log.Printf("cred: %v", cred)
return nil
return err
}
func checkPassword(password, hash []byte) bool {
Loading