Skip to content
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

Added a factory method that supports BASIC auth. #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kohsuke
Copy link
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