api

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RdpGwSession = "RDPGWSESSION"
	MaxAge       = 120
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SessionKey           []byte
	SessionEncryptionKey []byte
	PAATokenGenerator    TokenGeneratorFunc
	UserTokenGenerator   UserTokenGeneratorFunc
	EnableUserToken      bool
	OAuth2Config         *oauth2.Config

	OIDCTokenVerifier *oidc.IDTokenVerifier

	Hosts               []string
	GatewayAddress      string
	UsernameTemplate    string
	NetworkAutoDetect   int
	BandwidthAutoDetect int
	ConnectionType      int
	SplitUserDomain     bool
	DefaultDomain       string
	// contains filtered or unexported fields
}

func (*Config) Authenticated

func (c *Config) Authenticated(next http.Handler) http.Handler

func (*Config) HandleCallback

func (c *Config) HandleCallback(w http.ResponseWriter, r *http.Request)

func (*Config) HandleDownload

func (c *Config) HandleDownload(w http.ResponseWriter, r *http.Request)

func (*Config) NewApi

func (c *Config) NewApi()

func (*Config) TokenInfo

func (c *Config) TokenInfo(w http.ResponseWriter, r *http.Request)

type TokenGeneratorFunc

type TokenGeneratorFunc func(context.Context, string, string) (string, error)

type UserTokenGeneratorFunc

type UserTokenGeneratorFunc func(context.Context, string) (string, error)

Jump to

Keyboard shortcuts

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