Is there any plan to support SAML authentication to the OpenSearch JavaScript client?
I mean, implementing an API similar to the existing elasticsearch nodejs client.
If not.
Is there a way to authenticate users with elasticserach nodejs client using SAML, as the elasticsearch nodejs version 7.13 doesn’t have the SAML APIs mentioned above.
1 Like
oscark
October 13, 2021, 8:21am
2
First question: IDK.
Second question: I haven’t tried this but I would assume that if you trust the client, it should be possible to use proxy-based authentication. Proxy-based authentication - OpenSearch documentation
1 Like
Thanks, @oscark .
Yes, it looks promising. I am going to check if I can integrate it into our solution.
@clenkiu Please create github issue for feature request on supporting SAML authentication in the OpenSearch JavaScript client
Repo: GitHub - opensearch-project/opensearch-js: Node.js Client for OpenSearch
I created the following issue:
opened 03:09PM - 14 Oct 21 UTC
closed 04:52PM - 09 Dec 22 UTC
:climbing: enhancement
The OpenSearch JavaScript client only supports basic authentication on its imple… mentation.
It is not possible to use the library authenticating users with SSO, using SAML authentication.
This is, by example, implemented in the ElasticSearch nodejs client version 7.14 and above, as described here:.
https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html#_security_samlprepareauthentication
https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html#_security_samlauthenticate
I would like to have a similar implementation in the OpenSearch JavaScript client.