proxy

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

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
}

type SerializableRequest added in v0.5.0

type SerializableRequest struct {
	Method string              `json:"method"`
	URL    string              `json:"url"`
	Header map[string][]string `json:"header"`
}

type SerializableState added in v0.5.0

type SerializableState struct {
	ExpiresOn         *time.Time `json:"expiresOn"`
	AccessToken       string     `json:"accessToken"`
	PreferredUsername string     `json:"preferredUsername"`
	User              string     `json:"user"`
	Email             string     `json:"email"`
	SetCookies        []string   `json:"setCookies"`
}

Jump to

Keyboard shortcuts

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