auth

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SkipAllKey = "all"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

type Authorizer struct {
	Credential tokenpb.TokenServiceServer
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Authorizer

func (*Authorizer) Authorizer

func (a *Authorizer) Authorizer(req *http.Request) (string, bool, error)

Authorizer auth before connection create

func (*Authorizer) CheckNeedAuth

func (a *Authorizer) CheckNeedAuth(clusterKey string) bool

CheckNeedAuth check auth

type Option

type Option func(authorizer *Authorizer)

func WithConfig

func WithConfig(cfg *config.Config) Option

WithConfig with dialer config

func WithCredentialClient

func WithCredentialClient(credential tokenpb.TokenServiceServer) Option

WithCredentialClient with core-services credential client

Jump to

Keyboard shortcuts

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