Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthnService ¶
type AuthnService interface {
GetPrincipal(ctx context.Context, via ...authenticate.ClientAssertion) (authenticate.Principal, error)
}
type Authz ¶
type Authz struct {
// contains filtered or unexported fields
}
func New ¶
func New( log log.Logger, next http.Handler, userIDHeaderKey string, resourceService ResourceService, principalService AuthnService) *Authz
func (Authz) Info ¶
func (c Authz) Info() *middleware.MiddlewareInfo
type Config ¶
type Config struct { Actions []string `yaml:"actions" mapstructure:"actions"` Permissions []Permission `yaml:"permissions" mapstructure:"permissions"` Attributes map[string]middleware.Attribute `yaml:"attributes" mapstructure:"attributes"` }
type Permission ¶
Click to show internal directories.
Click to hide internal directories.