Skip to content

HTTP authentication #153

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

Merged
merged 9 commits into from
Nov 12, 2019
Merged

HTTP authentication #153

merged 9 commits into from
Nov 12, 2019

Conversation

wronk
Copy link
Contributor

@wronk wronk commented Nov 11, 2019

Updates in this PR

Adds ability to specify a username and password for http authentication. This is useful for TMS requests behind a protected server. Closes #152

I also had to update an image in the test fixture. The version on NASA's server seemed to be slightly modified (as in a few intensity values per pixel). Visually, it still appears identical though. I verified that tests failed on master branch.

Next steps

@drewbo, once this looks good, I can create a new tag and push it to pypi. Then I'll need some help deploying the updated docs to the label-maker website.

@wronk wronk added the enhancement New feature or request label Nov 11, 2019
@wronk wronk requested a review from drewbo November 11, 2019 20:32
@wronk wronk self-assigned this Nov 11, 2019
Copy link
Contributor

@drewbo drewbo left a comment

Choose a reason for hiding this comment

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

Good catch on the test failure.

For the auth portion, I'll note my initial thoughts and why I chose to ignore them. We could avoid adding a new argument and lots of argument passing by parsing the auth information from the URL directly: (e.g. requests.get(..., auth(o.user, o.pass))). This is comparatively simpler and easier to maintain BUT is seems like it is deprecated in many places because of security concerns. So I feel like we shouldn't encourage that and this PR is good to go 🚢

@wronk
Copy link
Contributor Author

wronk commented Nov 12, 2019

Circle checks passed, github webhook seems broken for some reason
https://circleci.com/gh/developmentseed/label-maker/345

@wronk wronk merged commit eb7146e into master Nov 12, 2019
@wronk wronk deleted the enh/152-auth branch November 12, 2019 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add authentication to GET requests
2 participants