remove direct mode + add example development compose

This commit is contained in:
Thom Seddon
2018-11-06 14:17:40 +00:00
parent 91775ff0a8
commit dcf4f6574d
4 changed files with 48 additions and 29 deletions

View File

@ -26,11 +26,6 @@ func handler(w http.ResponseWriter, r *http.Request) {
return
}
// Direct mode
if fw.Direct {
uri = r.URL
}
// Handle callback
if uri.Path == fw.Path {
handleCallback(w, r, uri.Query())
@ -142,7 +137,6 @@ func main() {
cookieSecure := flag.Bool("cookie-secure", true, "Use secure cookies")
domainList := flag.String("domain", "", "Comma separated list of email domains to allow")
emailWhitelist := flag.String("whitelist", "", "Comma separated list of emails to allow")
direct := flag.Bool("direct", false, "Run in direct mode (use own hostname as oppose to X-Forwarded-Host, used for testing/development)")
prompt := flag.String("prompt", "", "Space separated list of OpenID prompt options")
flag.Parse()
@ -222,8 +216,6 @@ func main() {
Domain: domain,
Whitelist: whitelist,
Direct: *direct,
Prompt: *prompt,
}