marathon-client icon indicating copy to clipboard operation
marathon-client copied to clipboard

Added a factory method that supports BASIC auth.

Open kohsuke opened this issue 9 years ago • 0 comments

My original requirement is to be able to send an HTTP basic authentication along with requests.

I took the liberty to also add a version of a method that takes arbitrary RequestInterceptors to support other possible modes of authentication, and general control. I think it's worthwhile doing this now to avoid ending up with 20 different overloaded flavors of the getInstance() method, but I can imagine you might not want to expose Feign or perhaps go the other way and not have the getInstanceWithBasicAuth method.

kohsuke avatar Jul 21 '15 13:07 kohsuke