Documentation
¶
Index ¶
Constants ¶
View Source
const ( CaddyVarUpstream = "upstream" CaddyVarRedirectURL = "redirect_url" )
View Source
const CookieFlag = "cf"
CookieFlag is a query string flag to indicate a cookie has been requested. It remains set until the requested cookie has been verified. This is required to support user agents that do not allow cookies.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Proxy ¶
type Proxy struct {
Host string `required:"true"`
TokenSecret string `required:"true" split_words:"true"`
Sites AuthSites `required:"true" split_words:"true"`
ManagementAPI string `required:"true" split_words:"true"`
// optional params
CookieName string `default:"_auth_proxy" split_words:"true"`
ReturnToParam string `default:"returnTo" split_words:"true"`
RobotsTxtDisable bool `default:"false" split_words:"true"`
TokenParam string `default:"token" split_words:"true"`
TokenPath string `default:"/auth/token" split_words:"true"`
// Secret is the binary token secret. Must be exported to be valid after being passed back from Caddy.
Secret []byte `ignored:"true"`
// contains filtered or unexported fields
}
func (Proxy) CaddyModule ¶
func (Proxy) CaddyModule() caddy.ModuleInfo
type ProxyClaim ¶
type ProxyClaim struct {
Level string `json:"level"`
IsValid bool
jwt.RegisteredClaims
}
Click to show internal directories.
Click to hide internal directories.