Documentation ¶
Index ¶
- func AuthenticateJWT(authString string) (string, error)
- func DeleteUser(c echo.Context) error
- func DoJWTAuth(next echo.HandlerFunc) echo.HandlerFunc
- func GetLogin(c echo.Context) error
- func GetUserByUserID(c echo.Context) error
- func GetUsers(c echo.Context) error
- func New() *echo.Echo
- func NewJWTSession(user string) (string, error)
- func PatchUser(c echo.Context) error
- func PostUsers(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateJWT ¶
AuthenticateJWT ensures that input jwt string matches
signature of secret and is valid within the given time returns aud field (username)
func DeleteUser ¶
func DoJWTAuth ¶
func DoJWTAuth(next echo.HandlerFunc) echo.HandlerFunc
DoJWTAuth is a middleware function that will try to
validate the Authorization:Bearer token and fetch the corresponding user
func GetUserByUserID ¶
func GetUsers ¶
GetUsers retrieves all users
available to roles with ModifyAllUsersRestricted permission
func NewJWTSession ¶
NewJWTSession creates a jwt token with
aud = user exp = now + sessionDuration iss = now
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.