session

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllManagers = []SessionName{COOKIES}

Functions

This section is empty.

Types

type SessionManager

type SessionManager interface {
	GetToken(req *http.Request) (*token.Token, error)
	GetState(req *http.Request) (string, error)
	RedirectLogin(w http.ResponseWriter, req *http.Request) error
	Exchange(w http.ResponseWriter, req *http.Request, code string) error
}

func GetSessionManager

func GetSessionManager(authconfig *oauth2.Config, config map[string]string) (SessionManager, error)

type SessionName

type SessionName string
const (
	COOKIES SessionName = "cookies"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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