interfaces

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationContext

type AuthenticationContext interface {
	OAuth2Config() *oauth2.Config
	Claims() config.Claims
	OidcProvider() *oidc.Provider
	CookieManager() CookieHandler
	Options() config.OAuthOptions
	GetUserInfoURL() *url.URL
	GetBaseURL() *url.URL
	GetMetadataURL() *url.URL
	GetHTTPClient() *http.Client
}

This interface is a convenience wrapper object that holds all the utilities necessary to run Flyte Admin behind authentication It is constructed at the root server layer, and passed around to the various auth handlers and utility functions/objects.

type CookieHandler

type CookieHandler interface {
	RetrieveTokenValues(ctx context.Context, request *http.Request) (accessToken string, refreshToken string, err error)
	SetTokenCookies(ctx context.Context, writer http.ResponseWriter, token *oauth2.Token) error
	DeleteCookies(ctx context.Context, writer http.ResponseWriter)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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