Change default approval promt value to none
Update README
This commit is contained in:
parent
4e15f2383b
commit
e7b9f5e9c0
|
|
@ -189,7 +189,7 @@ An example [oauth2_proxy.cfg](contrib/oauth2_proxy.cfg.example) config file is i
|
|||
|
||||
```
|
||||
Usage of oauth2_proxy:
|
||||
-approval-prompt string: OAuth approval_prompt (default "force")
|
||||
-approval-prompt string: OAuth approval_prompt. Possible options: "", "force|consent", "login" (AAD), "select_account" (Google). (default "")
|
||||
-authenticated-emails-file string: authenticate against emails via file (one per line)
|
||||
-azure-tenant string: go to a tenant-specific or common (tenant-independent) endpoint. (default "common")
|
||||
-basic-auth-password string: the password to set when passing the HTTP Basic Auth header
|
||||
|
|
@ -218,7 +218,7 @@ Usage of oauth2_proxy:
|
|||
-http-address string: [http://]<addr>:<port> or unix://<path> to listen on for HTTP clients (default "127.0.0.1:4180")
|
||||
-https-address string: <addr>:<port> to listen on for HTTPS clients (default ":443")
|
||||
-login-url string: Authentication endpoint
|
||||
-pass-access-token: pass OAuth access_token to upstream via X-Forwarded-Access-Token header
|
||||
-pass-access-token: pass OAuth access_token to upstream via X-Forwarded-Access-Token header (default false)
|
||||
-pass-basic-auth: pass HTTP Basic Auth, X-Forwarded-User and X-Forwarded-Email information to upstream (default true)
|
||||
-pass-host-header: pass the request Host Header to upstream (default true)
|
||||
-pass-user-headers: pass X-Forwarded-User and X-Forwarded-Email information to upstream (default true)
|
||||
|
|
|
|||
2
main.go
2
main.go
|
|
@ -82,7 +82,7 @@ func main() {
|
|||
flagSet.String("resource", "", "The resource that is protected (Azure AD only)")
|
||||
flagSet.String("validate-url", "", "Access token validation endpoint")
|
||||
flagSet.String("scope", "", "OAuth scope specification")
|
||||
flagSet.String("approval-prompt", "force", "OAuth approval_prompt")
|
||||
flagSet.String("approval-prompt", "", "OAuth approval_prompt")
|
||||
|
||||
flagSet.String("signature-key", "", "GAP-Signature request signature key (algorithm:secretkey)")
|
||||
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ func NewOptions() *Options {
|
|||
GroupsDelimiter: "|",
|
||||
PassAccessToken: false,
|
||||
PassHostHeader: true,
|
||||
ApprovalPrompt: "force",
|
||||
ApprovalPrompt: "",
|
||||
RequestLogging: true,
|
||||
RequestLoggingFormat: defaultRequestLoggingFormat,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue