Skip to content

Commit ce3d974

Browse files
committed
update skip-auth-regex help text
1 parent 6279624 commit ce3d974

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ Usage of oauth2_proxy:
317317
-set-xauthrequest: set X-Auth-Request-User and X-Auth-Request-Email response headers (useful in Nginx auth_request mode)
318318
-signature-key string: GAP-Signature request signature key (algorithm:secretkey)
319319
-skip-auth-preflight: will skip authentication for OPTIONS requests
320-
-skip-auth-regex value: bypass authentication for requests path's that match (may be given multiple times)
320+
-skip-auth-regex value: bypass authentication for requests with paths that match (may be given multiple times)
321321
-skip-auth-strip-headers: strip upstream request http headers that are normally set by this proxy, also for requests allowed by --skip-auth-regex (default true)
322322
-skip-oidc-discovery: Skip OIDC discovery (login-url, redeem-url and oidc-jwks-url must be configured)
323323
-skip-provider-button: will skip sign-in-page to directly reach the next step: oauth/start

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func mainFlagSet() *flag.FlagSet {
3838
flagSet.String("basic-auth-password", "", "the password to set when passing the HTTP Basic Auth header")
3939
flagSet.Bool("pass-access-token", false, "pass OAuth access_token to upstream via X-Forwarded-Access-Token header")
4040
flagSet.Bool("pass-host-header", true, "pass the request Host Header to upstream")
41-
flagSet.Var(&skipAuthRegex, "skip-auth-regex", "bypass authentication for requests path's that match (may be given multiple times)")
41+
flagSet.Var(&skipAuthRegex, "skip-auth-regex", "bypass authentication for requests with paths that match (may be given multiple times)")
4242
flagSet.Bool("skip-auth-strip-headers", true, "strip upstream request http headers that are normally set by this proxy, also for requests allowed by --skip-auth-regex")
4343
flagSet.Bool("skip-provider-button", false, "will skip sign-in-page to directly reach the next step: oauth/start")
4444
flagSet.Bool("skip-auth-preflight", false, "will skip authentication for OPTIONS requests")

0 commit comments

Comments
 (0)