Update authentication.asciidoc (#1573)

This commit is contained in:
Brandon Morelli
2021-10-20 15:07:57 -07:00
committed by GitHub
parent f58d520883
commit 5e26ff1a9b

View File

@ -59,7 +59,7 @@ const client = new Client({
=== ApiKey authentication
You can use the https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-create-api-key.html[ApiKey] authentication by passing the `apiKey` parameter via the `auth` option. +
You can use the https://www.elastic.co/guide/en/elasticsearch/reference/7.16/security-api-create-api-key.html[ApiKey] authentication by passing the `apiKey` parameter via the `auth` option. +
The `apiKey` parameter can be either a base64 encoded string or an object with the values that you can obtain from the https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-create-api-key.html[create api key endpoint].
NOTE: If you provide both basic authentication credentials and the Api Key configuration, the Api Key will take precedence.
@ -108,4 +108,4 @@ const client = new Client({
rejectUnauthorized: true
}
})
----
----