From 723fb2e81e790ff925175933a8c351fde212339b Mon Sep 17 00:00:00 2001 From: mohan-v Date: Fri, 6 Nov 2026 08:54:51 -0800 Subject: [PATCH] Fix elastic/docs-content-internal#2095 --- .../token-based-authentication-services.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/deploy-manage/users-roles/cluster-or-deployment-auth/token-based-authentication-services.md b/deploy-manage/users-roles/cluster-or-deployment-auth/token-based-authentication-services.md index db39f1520b1..a1d1416d21c 100644 --- a/deploy-manage/users-roles/cluster-or-deployment-auth/token-based-authentication-services.md +++ b/deploy-manage/users-roles/cluster-or-deployment-auth/token-based-authentication-services.md @@ -16,15 +16,15 @@ The {{security-features}} provide the following built-in token-based authenticat *service-accounts* : The [service accounts](service-accounts.md) use either the [create service account token API]({{es-apis}}operation/operation-security-create-service-token) or the [elasticsearch-service-tokens](elasticsearch://reference/elasticsearch/command-line-tools/service-tokens-command.md) CLI tool to generate service account tokens. -To use a service account token, include the generated token value in a request with an `Authorization: Bearer` header: + To use a service account token, include the generated token value in a request with an `Authorization: Bearer` header: -```shell -curl -H "Authorization: Bearer AAEAAWVsYXN0aWMvZ...mXQtc2VydmMTpyNXdkYmRib1FTZTl2R09Ld2FKR0F3" http://localhost:9200/_cluster/health -``` + ```shell + curl -H "Authorization: Bearer AAEAAWVsYXN0aWMvZ...mXQtc2VydmMTpyNXdkYmRib1FTZTl2R09Ld2FKR0F3" http://localhost:9200/_cluster/health + ``` -::::{important} -Do not attempt to use service accounts for authenticating individual users. Service accounts can only be authenticated with service tokens, which are not applicable to regular users. -:::: + ::::{important} + Do not attempt to use service accounts for authenticating individual users. Service accounts can only be authenticated with service tokens, which are not applicable to regular users. + ::::