Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCheck ¶
func HandleCheck(s *server.Server) echo.HandlerFunc
HandleCheck just validates a client's JWT as cheaply as possible
func HandleLogin ¶
func HandleLogin(s *server.Server) echo.HandlerFunc
HandleLogin looks for basic auth info and if allowed returns a JWT suitable for further API use
Types ¶
type CustomClaims ¶
type CustomClaims struct { ID int `json:"id"` Name string `json:"name"` Email string `json:"email"` DateCreated time.Time `json:"date_created"` DateModified time.Time `json:"date_modified"` // TODO: IsAdmin bool `json:"admin"` jwt.StandardClaims }
CustomClaims extends the default claims with anything we want added to a user's JWT
Click to show internal directories.
Click to hide internal directories.