From 5e26ff1a9beedf40bb2958590bde8bddb26cece1 Mon Sep 17 00:00:00 2001 From: Brandon Morelli Date: Wed, 20 Oct 2021 15:07:57 -0700 Subject: [PATCH] Update authentication.asciidoc (#1573) --- docs/authentication.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/authentication.asciidoc b/docs/authentication.asciidoc index 1e1a2a552..71ffe4c46 100644 --- a/docs/authentication.asciidoc +++ b/docs/authentication.asciidoc @@ -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 } }) ----- \ No newline at end of file +----