New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return API key name in _authentication response #78946
Return API key name in _authentication response #78946
Commits on Oct 11, 2021
-
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
-
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
Commits on Oct 12, 2021
Commits on Oct 14, 2021
Commits on Oct 15, 2021
-
-
Merge remote-tracking branch 'origin/master' into feature/70306
# Conflicts: # x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/store/CompositeRolesStoreTests.java
-
Fix another test lacking mandatory api_key id.
Fix merge issue.
-
-
-
-
-
Commits on Oct 18, 2021
Commits on Oct 20, 2021
Commits on Oct 21, 2021
-
-
Guard assertions with authentication type check.
Add a brief message to show when the assertions trip. Change second assertion from ID to NAME.
-
-
-
-
-