authorize

package
v1.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 7 Imported by: 0

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 AuthzController

type AuthzController struct {
	// contains filtered or unexported fields
}

AuthzController create a authorize handler used to handle authorize request.

func NewAuthzController

func NewAuthzController(store authorizer.PolicyGetter) *AuthzController

NewAuthzController creates a authorize handler.

func (*AuthzController) Authorize

func (a *AuthzController) Authorize(c *gin.Context)

Authorize returns whether a request is allow or deny to access a resource and do some action under specified condition.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL