upstream

package
v1.0.30 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Backend = "upstream"

Backend name

View Source
const DefaultTimeout = time.Minute

DefaultTimeout for sub requests

Variables

This section is empty.

Functions

This section is empty.

Types

type Upstream

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

Upstream backend provides authentication against an upstream http server. If the upstream request returns a http 200 status code then the user is considered logged in.

func (Upstream) Authenticate

func (h Upstream) Authenticate(r *http.Request) (bool, error)

Authenticate fulfils the backend interface

Jump to

Keyboard shortcuts

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