Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetConfigDefaults ¶ added in v0.3.1
func WebAuthnID ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RegisterRoute ¶
func (s *Server) RegisterRoute(r echo.RouteRegister)
func (*Server) RegisterRouteForLogin ¶ added in v0.2.5
func (s *Server) RegisterRouteForLogin(r echo.RouteRegister)
type User ¶
type User struct {
ID uint64
Name string
DisplayName string
Icon string
Credentials []webauthn.Credential
}
func (*User) WebAuthnCredentials ¶
func (u *User) WebAuthnCredentials() []webauthn.Credential
Credentials owned by the user
func (*User) WebAuthnDisplayName ¶
Display Name of the user
func (*User) WebAuthnName ¶
User Name according to the Relying Party
type UserHandler ¶
type UserHandler interface {
GetUser(ctx echo.Context, username string, opType Type, stage Stage) (webauthn.User, error)
Register(ctx echo.Context, user webauthn.User, cred *webauthn.Credential) error
Login(ctx echo.Context, user webauthn.User, cred *webauthn.Credential) error
Unbind(ctx echo.Context, user webauthn.User, cred *webauthn.Credential) error
}
Click to show internal directories.
Click to hide internal directories.