Documentation ¶
Overview ¶
Package authorize implements the authorize handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthzHandler ¶
type AuthzHandler struct {
// contains filtered or unexported fields
}
AuthzHandler create a authorize handler used to handle authorize request.
func NewAuthzHandler ¶
func NewAuthzHandler(store authorizer.PolicyGetter) *AuthzHandler
NewAuthzHandler creates a authorize handler.
func (*AuthzHandler) Authorize ¶
func (a *AuthzHandler) Authorize(c *gin.Context)
Authorize returns whether a request is allow or deny to access a resource and do some action under specified condition.
Click to show internal directories.
Click to hide internal directories.