Documentation ¶
Index ¶
- Constants
- func EnrichContext(next http.Handler) http.Handler
- func GetSession(r *http.Request) (*sessions.Session, error)
- func GetSessionIdentity(r *http.Request) (identity.Identity, error)
- func InitStore(sessionKey []byte, encryptionKey []byte, storeType string, maxLength int)
- func NoAuthz(r *http.Request, rm *mux.RouteMatch) bool
- func SaveSessionIdentity(r *http.Request, w http.ResponseWriter, id identity.Identity) error
- func TokenInfo(w http.ResponseWriter, r *http.Request)
- func TransposeSPNEGOContext(next http.Handler) http.Handler
- type AuthMux
- type BasicAuthHandler
- type Config
- type Handler
- type OIDC
- type OIDCConfig
- type QueryInfoFunc
- type RdpOpts
- type TokenGeneratorFunc
- type UserTokenGeneratorFunc
Constants ¶
View Source
const ( CacheExpiration = time.Minute * 2 CleanupInterval = time.Minute * 5 )
View Source
const (
MaxAge = 120
)
Variables ¶
This section is empty.
Functions ¶
func SaveSessionIdentity ¶
Types ¶
type AuthMux ¶
type AuthMux struct {
// contains filtered or unexported fields
}
func NewAuthMux ¶
func NewAuthMux() *AuthMux
func (*AuthMux) SetAuthenticate ¶
func (a *AuthMux) SetAuthenticate(w http.ResponseWriter, r *http.Request)
type BasicAuthHandler ¶
func (*BasicAuthHandler) BasicAuth ¶
func (h *BasicAuthHandler) BasicAuth(next http.HandlerFunc) http.HandlerFunc
type Config ¶
type Config struct { PAATokenGenerator TokenGeneratorFunc UserTokenGenerator UserTokenGeneratorFunc QueryInfo QueryInfoFunc QueryTokenIssuer string EnableUserToken bool Hosts []string HostSelection string GatewayAddress *url.URL RdpOpts RdpOpts TemplateFile string }
func (*Config) NewHandler ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) HandleDownload ¶
func (h *Handler) HandleDownload(w http.ResponseWriter, r *http.Request)
type OIDC ¶
type OIDC struct {
// contains filtered or unexported fields
}
func (*OIDC) HandleCallback ¶
func (h *OIDC) HandleCallback(w http.ResponseWriter, r *http.Request)
type OIDCConfig ¶
type OIDCConfig struct { OAuth2Config *oauth2.Config OIDCTokenVerifier *oidc.IDTokenVerifier }
func (*OIDCConfig) New ¶
func (c *OIDCConfig) New() *OIDC
type TokenGeneratorFunc ¶
Click to show internal directories.
Click to hide internal directories.