publicProxy

package
v0.4.27 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const V = 3

Variables

This section is empty.

Functions

func SetZrokCookie added in v0.4.7

func SetZrokCookie(w http.ResponseWriter, cookieDomain, email, accessToken, provider string, checkInterval time.Duration, key []byte, targetHost string)

Types

type Config

type Config struct {
	V         int
	Identity  string
	Address   string
	HostMatch string
	Oauth     *OauthConfig
	Tls       *endpoints.TlsConfig
}

func DefaultConfig

func DefaultConfig() *Config

func (*Config) Load

func (c *Config) Load(path string) error

type HttpFrontend added in v0.4.7

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

func NewHTTP

func NewHTTP(cfg *Config) (*HttpFrontend, error)

func (*HttpFrontend) Run added in v0.4.7

func (f *HttpFrontend) Run() error

type OauthConfig added in v0.4.7

type OauthConfig struct {
	BindAddress  string
	RedirectUrl  string
	CookieDomain string
	HashKey      string `cf:"+secret"`
	Providers    []*OauthProviderConfig
}

func (*OauthConfig) GetProvider added in v0.4.7

func (oc *OauthConfig) GetProvider(name string) *OauthProviderConfig

type OauthProviderConfig added in v0.4.7

type OauthProviderConfig struct {
	Name         string
	ClientId     string
	ClientSecret string `cf:"+secret"`
}

type ZrokClaims added in v0.4.7

type ZrokClaims struct {
	Email                      string        `json:"email"`
	AccessToken                string        `json:"accessToken"`
	Provider                   string        `json:"provider"`
	Audience                   string        `json:"aud"`
	AuthorizationCheckInterval time.Duration `json:"authorizationCheckInterval"`
	jwt.RegisteredClaims
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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