authorizer

package
v0.2.53-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

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

Authorizer provides OpenAPI based authorization middleware.

func NewAuthorizer

func NewAuthorizer(client client.Client, options *identityclient.Options, clientOptions *coreclient.HTTPClientOptions) *Authorizer

NewAuthorizer returns a new authorizer with required parameters.

func (*Authorizer) Authorize

func (a *Authorizer) Authorize(authentication *openapi3filter.AuthenticationInput) (*authorization.Info, error)

Authorize checks the request against the OpenAPI security scheme.

func (*Authorizer) GetACL

func (a *Authorizer) GetACL(ctx context.Context, organizationID, subject string) (*identityapi.Acl, error)

GetACL retrieves access control information from the subject identified by the Authorize call.

type Getter added in v0.2.52

type Getter string

func (Getter) Get added in v0.2.52

func (a Getter) Get() string

Jump to

Keyboard shortcuts

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