Add -prompt flag

Space separated list of OpenID prompt options (https://developers.google.com/identity/protocols/OpenIDConnect#prompt)
This commit is contained in:
Thomas Vaillant
2018-11-05 16:43:30 +01:00
parent b54871391f
commit c897bc8387
4 changed files with 11 additions and 1 deletions

View File

@ -142,6 +142,7 @@ func main() {
cookieSecure := flag.Bool("cookie-secure", true, "Use secure cookies")
domainList := flag.String("domain", "", "Comma separated list of email domains 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()
@ -216,6 +217,8 @@ func main() {
Domain: domain,
Direct: *direct,
Prompt: *prompt,
}
// Attach handler