forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return API KEY name in _authentication response
Responses to POST /_security/api_key includes id, name, metadata, api_key (shared secret), and encoded (base64 of id:api_key). Requests to GET /_security/_authenticate returns data about the user, but not the API KEY. When authenticating using an API KEY, return API KEY info map in the response. The initial feature request asked for 'name'. However, the request's Authentication header contains 'encoded', so the decoded 'id' will be returned for convenience too. When authenticating using any other method, API KEY info map is omitted. Closes elastic#70306
- Loading branch information
1 parent
5aa200c
commit 2442918
Showing
34 changed files
with
396 additions
and
186 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.