Harmonizing Default HTTP Client Across Codebase #757
heikkilamarko
started this conversation in
General
Replies: 1 comment
-
Thank you for getting in touch @heikkilamarko! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The ZITADEL OIDC codebase defines a custom
http.Client
as the default (DefaultHTTPClient
):oidc/pkg/http/http.go
Line 17 in 668fb0d
However, in
jwt_profile.go
, the standardhttp.DefaultClient
is used instead:oidc/pkg/client/profile/jwt_profile.go
Line 73 in 668fb0d
For certain development and testing purposes, we are replacing ZITADEL's default HTTP client as follows:
This approach does not apply to
jwt_profile.go
, as it uses a different default HTTP client.Using a consistent default HTTP client across the codebase would make global overrides more straightforward. What are your thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions