# Elasticsearch with SAML

**URL:** <https://forum.opensearch.org/t/elasticsearch-with-saml/2145>\
**Category:** Security\
**Created:** [January 28, 2020, 10:49pm UTC](https://forum.opensearch.org/t/elasticsearch-with-saml/2145 "2020-01-28T22:49:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wilfredc](https://avatars.discourse-cdn.com/v4/letter/w/82dd89/32.png) [@wilfredc](https://forum.opensearch.org/u/wilfredc)\
**Post date:** [January 28, 2020, 10:49pm UTC](https://forum.opensearch.org/t/elasticsearch-with-saml/2145/1 "2020-01-28T22:49:01Z")

</div>

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](mailto: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?

Thanks

---

<div class="post-metadata">

**Author:** ![wilfredc](https://avatars.discourse-cdn.com/v4/letter/w/82dd89/32.png) [@wilfredc](https://forum.opensearch.org/u/wilfredc)\
**Post date:** [January 29, 2020, 9:47pm UTC](https://forum.opensearch.org/t/elasticsearch-with-saml/2145/2 "2020-01-29T21:47:32Z")

</div>

Found the answer, thanks

**SAML**  
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.
