Documentation
¶
Index ¶
- func Enforce(req *http.Request, URL, jwtKey, groupKey string) bool
- func GetGroupFromToken(req *http.Request, jwtKey, groupKey string) ([]string, error)
- func GetGroupNames(decodedToken jwt.MapClaims, groupKey string) ([]string, error)
- func LoadRoleConfiguration(csvFilePath string)
- func RegisterUser(group, URL string, isAllowed bool)
- type URLGroupMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGroupFromToken ¶
func GetGroupNames ¶
GetGroupNames gets the group names from the request.
func LoadRoleConfiguration ¶
func LoadRoleConfiguration(csvFilePath string)
func RegisterUser ¶
RegisterUser - RegisterUser register use
Types ¶
Click to show internal directories.
Click to hide internal directories.