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

API key Authentication #1010

Merged
merged 6 commits into from
Sep 20, 2019
Merged

API key Authentication #1010

merged 6 commits into from
Sep 20, 2019

Conversation

philkra
Copy link
Contributor

@philkra philkra commented Sep 4, 2019

This PR adds a simplified usage of Elasticsearch's API Key authentication.

@philkra philkra requested a review from fxdgear September 4, 2019 14:00
@philkra philkra requested a review from honzakral September 19, 2019 08:28
docs/index.rst Outdated Show resolved Hide resolved
Copy link
Contributor

@honzakral honzakral left a comment

Choose a reason for hiding this comment

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

left some minor changes and one blocker - we cannot ignore a parameter that someone passed in, we need to override the defaults o raise an exception when invalid combination of parameters is defined.

The best solution for the authorization header would be to allow for multiple values which is a valid approach in http

elasticsearch/connection/base.py Outdated Show resolved Hide resolved
elasticsearch/connection/http_requests.py Outdated Show resolved Hide resolved
Copy link
Contributor Author

@philkra philkra left a comment

Choose a reason for hiding this comment

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

added the request changes

docs/index.rst Outdated Show resolved Hide resolved
elasticsearch/connection/base.py Outdated Show resolved Hide resolved
elasticsearch/connection/http_requests.py Outdated Show resolved Hide resolved
@honzakral honzakral merged commit c4bc2e4 into elastic:master Sep 20, 2019
@philkra philkra deleted the add-api-key-auth branch September 23, 2019 08:17
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