proxy

package
v0.0.0-...-22740ca Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth0Proxy

type Auth0Proxy struct {
	ReverseProxy   *httputil.ReverseProxy
	Domain         string
	ClientID       string
	ClientSecret   string
	RedirectURI    string
	SessionTimeout time.Duration
	// contains filtered or unexported fields
}

func NewAuth0Proxy

func NewAuth0Proxy(c Config) *Auth0Proxy

func (*Auth0Proxy) ServeHTTP

func (a *Auth0Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

type CodeExchangeRequest

type CodeExchangeRequest struct {
	GrantType    string `json:"grant_type"`
	ClientID     string `json:"client_id"`
	ClientSecret string `json:'client_secret"`
	Code         string `json:"code"`
	RedirectURI  string `json:"redirect_uri"`
}

type Config

type Config struct {
	ReverseProxy   *httputil.ReverseProxy
	Domain         string
	ClientID       string
	ClientSecret   string
	RedirectURI    string
	SessionSecret  []byte
	SessionTimeout time.Duration
}

Jump to

Keyboard shortcuts

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