Documentation ¶
Index ¶
- func GenerateToken(user, password, application string) (string, error)
- func GetJWTAuthService() (string, int, error)
- func GetUserID(claims map[string]interface{}) (id string, err error)
- func Middleware() func(http.Handler) http.Handler
- func UserIDFromContext(ctx context.Context) string
- func ValidateToken(tokenString string) (policy string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
func GetJWTAuthService ¶
func UserIDFromContext ¶
func ValidateToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.