oauth2-proxy/pkg
Lrifton92 d1b8989e5e fix: resolve version from build info when not set via ldflags
When oauth2-proxy is built without the Makefile/dist.sh ldflags (for example
via `go install github.com/oauth2-proxy/oauth2-proxy/v7@latest`), the VERSION
variable kept its default "undefined" value, so `oauth2-proxy --version`
reported "oauth2-proxy undefined (built with ...)".

Fall back to the module version recorded in runtime/debug build info when
VERSION has not been overridden at build time. The ldflags-injected value
still takes precedence, so official release builds are unchanged.

Closes #3451

Signed-off-by: Lrifton92 <Lrifton92@users.noreply.github.com>
2026-06-09 15:56:45 +02:00
..
apis chore(goconsts): use proper constants for http methods 2026-06-08 12:54:58 +02:00
app Merge commit from fork 2026-04-13 18:22:56 +02:00
authentication chore(goconsts): use proper constants for http methods 2026-06-08 12:54:58 +02:00
cookies Merge commit from fork 2026-04-13 18:22:56 +02:00
encryption fix alpha config 2025-11-16 22:38:40 +01:00
header revert: secrets as []byte instead of string 2025-11-16 22:38:42 +01:00
ip Merge commit from fork 2026-04-13 18:22:56 +02:00
logger Request ID Logging (#1087) 2021-03-21 18:20:57 +00:00
middleware Merge commit from fork 2026-04-13 18:22:56 +02:00
providers feat: add support for specifying allowed OIDC JWT signing algorithms (#2753) (#2851) 2026-03-18 22:24:27 +08:00
proxyhttp feat: add support for setting a unix binding's socket file mode (#3376) 2026-03-19 00:08:50 +08:00
requests chore(goconsts): use proper constants for http methods 2026-06-08 12:54:58 +02:00
sessions feat: add same site option for csrf cookies (#3347) 2026-03-18 23:14:36 +08:00
upstream chore(deps): bump Go to 1.26 and migrate upstream reverse proxies to Rewrite 2026-06-08 14:12:56 +02:00
util feat: allow arbitrary claims from the IDToken and IdentityProvider UserInfo endpoint to be added to the session state (#2685) 2026-03-14 12:04:33 +08:00
validation chore(deps): bump Go to 1.26 and migrate upstream reverse proxies to Rewrite 2026-06-08 14:12:56 +02:00
version fix: resolve version from build info when not set via ldflags 2026-06-09 15:56:45 +02:00
watcher Fix Linting Errors (#1835) 2022-10-21 11:57:51 +01:00