Elasticsearch with SAML

I got Kibana authentication via SAML working. But not with elasticsearch.

I try curl -XPOST to index and json file with the -u flag, username@domain. It prompted me to enter a password, but the log said, it failed to authenticate.

Anyone successfully implement elasticsearch with saml and curl?


Found the answer, thanks

The Security plugin supports user authentication through SAML single sign-on. The Security plugin implements the web browser SSO profile of the SAML 2.0 protocol.

This profile is meant for use with web browsers. It is not a general-purpose way of authenticating users against the Security plugin, so its primary use case is to support Kibana single sign-on.