IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

xpack.security.authenticate

edit
client.xpack.security.authenticate()

Reference