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

Elastica with OpenDistro - Auth #1731

Open
EliuFlorez opened this issue Dec 11, 2019 · 4 comments
Open

Elastica with OpenDistro - Auth #1731

EliuFlorez opened this issue Dec 11, 2019 · 4 comments

Comments

@EliuFlorez
Copy link

Hi Elasctica Team,
You know I would like to use Elastica with OpenDistro in which I require authentication with the user and the ssl layer in --insecure
example: curl -XGET --insecure https: // localhost: 9200 -u admin: admin
Is there any way to perform that authentication like this. Since for endpoint consumption the same authentication must be identified.

@philkra
Copy link

philkra commented Dec 11, 2019

Hi @EliuFlorez ,
basic authentication is available in Elastica. You need to add the username and password in your configuration (ref: ClientConfiguration.php#L35).

Can you please verify if this resolves your issue?

@EliuFlorez
Copy link
Author

@philkra If I already had the username and password settings but I had to make some changes in Transport / HTTP.php since the scheme has to be HTTPS and cRUL \ curl_setopt ($ conn, CURLOPT_SSL_VERIFYPEER, false); So I achieve connection with OpenDistro

@philkra
Copy link

philkra commented Dec 12, 2019

Alright, now I fully grasp the questions, sorry for the half baked answer. Can you, please post the snippet how you currently instantiate the client?

@DavidFeller
Copy link

@EliuFlorez I just stumbled across the same thing. Would you share your modifications to Http.php etc.?

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

No branches or pull requests

3 participants