erda_auth

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "erda-auth"
)

Variables

This section is empty.

Functions

func New

func New(config json.RawMessage) (reverseproxy.Filter, error)

Types

type Config

type Config struct {
	On []*common.On `json:"on" yaml:"on"`
}

type ErdaAuth

type ErdaAuth struct {
	Config *Config
}

func (*ErdaAuth) Enable

func (f *ErdaAuth) Enable(_ context.Context, req *http.Request) bool

func (*ErdaAuth) OnRequest

func (f *ErdaAuth) OnRequest(ctx context.Context, w http.ResponseWriter, infor reverseproxy.HttpInfor) (signal reverseproxy.Signal, err error)

Jump to

Keyboard shortcuts

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