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

Allow authentication over HTTP using system property #641

Merged
merged 1 commit into from
Jul 17, 2018

Conversation

TadCordle
Copy link
Contributor

Fixes #599

@TadCordle TadCordle added this to the v0.9.7 milestone Jul 17, 2018
Copy link
Contributor

@coollog coollog left a comment

Choose a reason for hiding this comment

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

👍

@TadCordle TadCordle merged commit 255a565 into master Jul 17, 2018
@TadCordle TadCordle deleted the sendCredentialsOverHttp-system-property branch July 17, 2018 21:20
@@ -165,7 +165,7 @@ T call(RequestState requestState) throws IOException, RegistryException {
.setAccept(registryEndpointProvider.getAccept())
.setBody(registryEndpointProvider.getContent());
// Only sends authorization if using HTTPS.
if (!isHttpProtocol) {
if (!isHttpProtocol || Boolean.getBoolean("sendCredentialsOverHttp")) {
Copy link
Member

Choose a reason for hiding this comment

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

Oh, TIL system properties can be accessed through these kinds of methods. Interesting.

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