-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Users To Customize HttpClient #2410
Labels
Milestone
Comments
ryanjbaxter
added a commit
to ryanjbaxter/spring-cloud-config
that referenced
this issue
Apr 26, 2024
Rather than introducing a property to do this I think it would provide us more flexibility if we added a way to customize the HttpClient. PR #2413 should accomplish this. |
ryanjbaxter
changed the title
Configurability of the Cookie Spec of jgit's http client
Allow Users To Customize HttpClient
Apr 26, 2024
ryanjbaxter
added a commit
that referenced
this issue
Apr 29, 2024
…ior. (#2413) Fixes #2410 Co-authored-by: Ryan Baxter <[email protected]>
natedanner
pushed a commit
to natedanner/spring-cloud__spring-cloud-config
that referenced
this issue
May 20, 2024
…ior. (spring-cloud#2413) Fixes spring-cloud#2410 Co-authored-by: Ryan Baxter <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description
I can use the config server with Bitbucket (v8.19.1) over http and authenticate with a token by exposing a bean like this:
This works generally fine but produces a warning like the following in the config service on every http connection to the repository:
Root cause
The problem can be fixed by setting the cookie spec of the request config to
STANDARD
with code like this (e.g. inHttpClient4Support
):Feature request
Setting the cookie spec of the underlying
HttpClient
is not impossible but rather elaborate at the moment (e.g. by redefining the implementation ofConfigurableHttpConnectionFactory
). It would be great ifJGitEnvironmentProperties
had a propertycookieSpec
that would allow to set the cookie spec as needed.The text was updated successfully, but these errors were encountered: