LOGIN API For Xpack

Hi

Earlier there used to be an API - /api/security/v1/login.

Is there any similar API in the lastest kibana/xpack which has the same functionality as the earlier API.
I want to authenticate people though an ajax call.

Thanks

Hi there,

That login endpoint still exists, but Kibana's APIs don't support cross-origin requests, so to send a POST request to any endpoints would require hosting Kibana on a subpath of the domain from which the request originates. I haven't seen this done before, so if you're looking for a simpler option I'd suggest looking into setting up SAML (https://www.elastic.co/blog/how-to-enable-saml-authentication-in-kibana-and-elasticsearch), which will allow you to authenticate all of your users using a third-party authentication provider.

Thanks,
CJ

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.