auth

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthInterceptor

func NewAuthInterceptor(
	clientStore *oauth.ClientStore,
	agentStore agent.AgentRepository,
) connect.UnaryInterceptorFunc

Types

type Middleware

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

func WithStrategies

func WithStrategies(strategies ...Strategy) *Middleware

func (*Middleware) Handle

func (m *Middleware) Handle(c *gin.Context)

type Strategy

type Strategy interface {
	Handle(ctx *gin.Context) bool
	Evaluate(ctx *gin.Context) bool
}

Directories

Path Synopsis
strategy

Jump to

Keyboard shortcuts

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