@@ -216,6 +216,13 @@ Now start the proxy up with the following options:
216216 -jwt-key="${OAUTH2_PROXY_JWT_KEY}"
217217```
218218You can also set all these options with environment variables, for use in cloud/docker environments.
219+One tricky thing that you may encounter is that some cloud environments will pass in environment
220+variables in a docker env-file, which does not allow multiline variables like a PEM file.
221+If you encounter this, then you can create a `jwt_signing_key.pem` file in the top level
222+directory of the repo which contains the key in PEM format and then do your docker build.
223+The docker build process will copy that file into your image which you can then access by
224+setting the `OAUTH2_PROXY_JWT_KEY_FILE=/etc/ssl/private/jwt_signing_key.pem`
225+environment variable, or by setting `-jwt-key-file=/etc/ssl/private/jwt_signing_key.pem` on the commandline.
219226
220227Once it is running, you should be able to go to `http://localhost:4180/` in your browser,
221228get authenticated by the login.gov integration server, and then get proxied on to your
@@ -261,6 +268,7 @@ An example [oauth2_proxy.cfg](contrib/oauth2_proxy.cfg.example) config file is i
261268
262269```
263270Usage of oauth2_proxy:
271+ -acr-values string: optional, used by login.gov (default "http://idmanagement.gov/ns/assurance/loa/1")
264272 -approval-prompt string: OAuth approval_prompt (default "force")
265273 -authenticated-emails-file string: authenticate against emails via file (one per line)
266274 -azure-tenant string: go to a tenant-specific or common (tenant-independent) endpoint. (default "common")
@@ -269,10 +277,10 @@ Usage of oauth2_proxy:
269277 -client-secret string: the OAuth Client Secret
270278 -config string: path to config file
271279 -cookie-domain string: an optional cookie domain to force cookies to (ie: .yourcompany.com)
272− -cookie-path string: an optional cookie path to force cookies to (ie: /foo)
273280 -cookie-expire duration: expire timeframe for cookie (default 168h0m0s)
274281 -cookie-httponly: set HttpOnly cookie flag (default true)
275282 -cookie-name string: the name of the cookie that the oauth_proxy creates (default "_oauth2_proxy")
283+ -cookie-path string: an optional cookie path to force cookies to (ie: /poc/)* (default "/")
276284 -cookie-refresh duration: refresh the cookie after this duration; 0 to disable
277285 -cookie-secret string: the seed string for secure cookies (optionally base64 encoded)
278286 -cookie-secure: set secure (HTTPS) cookie flag (default true)
@@ -290,6 +298,8 @@ Usage of oauth2_proxy:
290298 -htpasswd-file string: additionally authenticate against a htpasswd file. Entries must be created with "htpasswd -s" for SHA encryption
291299 -http-address string: [http://]<addr>:<port> or unix://<path> to listen on for HTTP clients (default "127.0.0.1:4180")
292300 -https-address string: <addr>:<port> to listen on for HTTPS clients (default ":443")
301+ -jwt-key string: private key in PEM format used to sign JWT, so that you can say something like -jwt-key="${OAUTH2_PROXY_JWT_KEY}": required by login.gov
302+ -jwt-key-file string: path to the private key file in PEM format used to sign the JWT so that you can say something like -jwt-key-file=/etc/ssl/private/jwt_signing_key.pem: required by login.gov
293303 -login-url string: Authentication endpoint
294304 -oidc-issuer-url: the OpenID Connect issuer URL. ie: "https://accounts.google.com"
295305 -oidc-jwks-url string: OIDC JWKS URI for token verification; required if OIDC discovery is disabled
@@ -302,6 +312,7 @@ Usage of oauth2_proxy:
302312 -provider string: OAuth provider (default "google")
303313 -proxy-prefix string: the url root path that this proxy should be nested under (e.g. /<oauth2>/sign_in) (default "/oauth2")
304314 -proxy-websockets: enables WebSocket proxying (default true)
315+ -pubjwk-url string: JWK pubkey access endpoint: required by login.gov
305316 -redeem-url string: Token redemption endpoint
306317 -redirect-url string: the OAuth Redirect URL. ie: "https://internalapp.yourcompany.com/oauth2/callback"
307318 -request-logging: Log requests to stdout (default true)