Skip to content

Added a factory method that supports BASIC auth.#24

Open
kohsuke wants to merge 1 commit intomohitsoni:masterfrom
kohsuke:master
Open

Added a factory method that supports BASIC auth.#24
kohsuke wants to merge 1 commit intomohitsoni:masterfrom
kohsuke:master

Conversation

@kohsuke
Copy link
Copy Markdown
Contributor

@kohsuke kohsuke commented Jul 21, 2015

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant