Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBypassPath ¶
AddBypassPath adds an exact path to the list of paths that bypass middleware. Paths can include wildcards, such as /api/*. Paths are matched using path.Match. Returns an error if the path has invalid pattern.
func RemovePath ¶
func RemovePath(path string)
RemovePath removes a path from the list of paths that bypass middleware.
func ShouldBypass ¶
ShouldBypass checks if the request path is one of the auth bypass paths and returns true if the middleware should be bypassed. This can be used to bypass authz/authn middlewares for certain paths, such as webhooks that implement their own authentication.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.