mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
Added clarification on b64 encoding of API key (#78394)
* Added clarification on b64 encoding of API key The current documentation does not specify how to encode the response to get a valid api key, I added it from the info found here: https://github.com/elastic/elasticsearch/issues/50235#issuecomment-644170902 * Updated for consistency with Elasticsearch docs https://github.com/elastic/kibana/pull/78394#pullrequestreview-497412674
This commit is contained in:
parent
4f6df624e9
commit
e9acb95657
1 changed files with 3 additions and 3 deletions
|
@ -72,9 +72,9 @@ The response should look something like this:
|
||||||
"api_key" : "FD6P5UA4QCWlZZQhYF3YGw"
|
"api_key" : "FD6P5UA4QCWlZZQhYF3YGw"
|
||||||
}
|
}
|
||||||
|
|
||||||
Now, you can use the API key to request {kib} roles. You will need
|
Now, you can use the API key to request {kib} roles. You'll need to send a request with a
|
||||||
to base64-encode the `id` and `api_key` provided in the response
|
`Authorization` header with a value having the prefix `ApiKey` followed by the credentials,
|
||||||
and add it to your request as an authorization header. For example:
|
where credentials is the base64 encoding of `id` and `api_key` joined by a colon. For example:
|
||||||
|
|
||||||
[source,js]
|
[source,js]
|
||||||
curl --location --request GET 'http://localhost:5601/api/security/role' \
|
curl --location --request GET 'http://localhost:5601/api/security/role' \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue