router

package
v0.0.0-...-1ed9f32 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OidcContextKey = "oidc_key"
	AuthContextKey = "auth_key"
)
View Source
const END_OF_TRANSMISSION = "\u0004"
View Source
const (
	IdpContextKey = "idp_key"
)

Variables

This section is empty.

Functions

func GzipMiddleware

func GzipMiddleware() fwncs.HandlerFunc

func New

func New(conf config.Config, authfilename string, authConfig config.Auth, loadBalancer config.LoadBalancer) *fwncs.Router

func OpenIdConnectSetting

func OpenIdConnectSetting(oidcConfig config.OidcConfig) fwncs.HandlerFunc

func SaveToken

func SaveToken(session sessions.Session, token *oauth2.Token, auth *config.Authenticator) error

func SessionCheck

func SessionCheck(c fwncs.Context)

func SetAccessToken

func SetAccessToken(c fwncs.Context)

func SetIdToken

func SetIdToken(c fwncs.Context)

Types

type MultiHostHandler

type MultiHostHandler map[string]http.Handler

func (MultiHostHandler) Run

func (mh MultiHostHandler) Run(port int) error

func (MultiHostHandler) RunTLS

func (mh MultiHostHandler) RunTLS(port int, certFile, keyFile string) error

RunTLS is https

func (MultiHostHandler) ServeHTTP

func (mh MultiHostHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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