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 {
DefaultSite string `required:"true" split_words:"true"`
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 `split_words:"true" default:"_auth_proxy"`
ReturnToParam string `split_words:"true" default:"returnTo"`
RobotsTxtDisable bool `split_words:"true" default:"false"`
TokenParam string `split_words:"true" default:"token"`
TokenPath string `split_words:"true" default:"/auth/token"`
TrustedBots []string `split_words:"true" default:"googlebot"`
// 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.