The most scalable and customizable OpenID Certified™ OpenID Connect and OAuth Provider on the market. Become an OpenID Connect and OAuth2 Provider over night. Broad support for related RFCs. Written in Go, cloud native, headless, API-first. Available as a service on Ory Network and for self-hosters.
Preflight checklist
Describe the bug
Supplying custom HTTP headers via the
--http-header
flag causes the CLI to crash withpanic: assignment to entry in nil map
.Reproducing the bug
hydra list oauth2-clients --endpoint http://localhost:4445 --http-header "x-my-header: foobar"
Relevant log output
Relevant configuration
No response
Version
2.0.2
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
Kubernetes
Additional Context
A quick investigation points to this line causing the issue https://github.com/ory/x/blob/v0.0.514/cmdx/http.go#L90.
http.Header
is a map so must be instantiated before using.