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

Using AuthCache for Apache HttpClient to do pre-emptive authentication #85

Merged
merged 1 commit into from
Oct 13, 2015

Conversation

sagarsane
Copy link
Contributor

Need to clean the code up a bit

For #84

@sagarsane sagarsane force-pushed the 84-fix-authentication-for-publish branch from 19fb07b to f0df1f9 Compare October 10, 2015 17:20
private HttpClientContext getHttpClientContext(HttpGet get) {
// Setup preemptive Authentication
// Create AuthCache instance
AuthCache authCache = new BasicAuthCache();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sagarsane Minor: semi-colons can be removed from end of lines. +1 otherwise

@sagarsane sagarsane force-pushed the 84-fix-authentication-for-publish branch from f0df1f9 to 529d6f3 Compare October 12, 2015 14:41
@sagarsane sagarsane changed the title WIP - Using AuthCache for Apache HttpClient to do pre-emptive authentication Using AuthCache for Apache HttpClient to do pre-emptive authentication Oct 12, 2015
@sagarsane
Copy link
Contributor Author

@sikarwarvimal @kyleabaker @jdigger @jbornemann this is ready for review and testing. This will need a 3.0.x and a 4.0.x release.

* Gets a new HttpClientContext for the given HttpRequest. The ClientContext sets up preemptive
* authentication using BasicAuthCache
* @param get the HttpGet request
* @return
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty @return. either populate or remove

@jdigger
Copy link
Member

jdigger commented Oct 12, 2015

Besides some stylistic comments, +1 CR. Have not tested.

@sagarsane sagarsane force-pushed the 84-fix-authentication-for-publish branch from 529d6f3 to 8e8e4bf Compare October 12, 2015 15:17
@sagarsane
Copy link
Contributor Author

Updated with CR comments.

@sagarsane sagarsane force-pushed the 84-fix-authentication-for-publish branch from 8e8e4bf to fd3d7fe Compare October 13, 2015 16:58
@kyleabaker
Copy link

+1 testing

@sagarsane sagarsane force-pushed the 84-fix-authentication-for-publish branch from fd3d7fe to 008b459 Compare October 13, 2015 21:15
@sagarsane sagarsane merged commit 008b459 into master Oct 13, 2015
@sagarsane sagarsane deleted the 84-fix-authentication-for-publish branch October 13, 2015 22:25
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.

3 participants