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

add Header mode for credentials + docs #204

Merged
merged 2 commits into from
Aug 24, 2020
Merged

add Header mode for credentials + docs #204

merged 2 commits into from
Aug 24, 2020

Conversation

blackmad
Copy link
Contributor

We have a custom server in front of our pelias with some application
level hacks. It uses http header auth. I would like to be able to use
pelias fuzzy tester to see the differences, especially in autocomplete
testing, between our raw backend pelias, and this hacked up proxied
pelias. This change allows for that.

@blackmad blackmad requested a review from orangejulius August 21, 2020 17:16
Copy link
Member

@orangejulius orangejulius left a comment

Choose a reason for hiding this comment

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

Cool, this is great.

Clean code, backwards compatible, adds some nice functionality.

Actually it even makes the code better, the API key logic should never have been hardcoded into the the test URLs.

Looks like the functionality is well covered by a new unit test, and the existing tests should ensure bits of behavior like our old vs new key sections from #198 continue to work.

I tried out all the options and they appear to work well.

blackmad and others added 2 commits August 24, 2020 07:07
We have a custom server in front of our pelias with some application
level hacks. It uses http header auth. I would like to be able to use
pelias fuzzy tester to see the differences, especially in autocomplete
testing, between our raw backend pelias, and this hacked up proxied
pelias. This change allows for that.
@orangejulius orangejulius merged commit 7f732e7 into master Aug 24, 2020
@orangejulius orangejulius deleted the header-creds branch August 24, 2020 11:09
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.

2 participants