proxy

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CurrentAuthProviderCookie  = "current_auth_provider"
	ObotAccessTokenCookie      = "obot_access_token"
	ObotAccessTokenCookieZero  = "obot_access_token_0"
	ObotAuthProviderQueryParam = "obot-auth-provider"
)

Variables

View Source
var ErrInvalidSession = errors.New("invalid session")

Functions

This section is empty.

Types

type Manager added in v0.5.0

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

func NewProxyManager added in v0.5.0

func NewProxyManager(ctx context.Context, dispatcher *dispatcher.Dispatcher) *Manager

func (*Manager) AuthenticateRequest added in v0.5.0

func (pm *Manager) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error)

func (*Manager) HandlerFunc added in v0.5.0

func (pm *Manager) HandlerFunc(ctx api.Context) error

func (*Manager) ServeHTTP added in v0.5.0

func (pm *Manager) ServeHTTP(user user.Info, w http.ResponseWriter, r *http.Request)

type Proxy

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

Jump to

Keyboard shortcuts

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