Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminOnly ¶
func AdminOnly(c *fiber.Ctx) error
AdminOnly checks for "admin" claim in jwt token. This Middleware requires Protected() to be called in middleware chain before.
func ApplyPermissions ¶
func ApplyPermissions(c *fiber.Ctx) error
This Middleware requires Protected() to be called in middleware chain before. Rolechecker checks "roles" claim in jwt token against permissions of the contenttype of the requested content Checks also for "admin" claim and passes if it is true
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.