Skip to content

[7.x] Adding authc.grantAPIKeyAsInternalUser (#60423)#60927

Merged
kobelb merged 1 commit intoelastic:7.xfrom
kobelb:backport/7.x/pr-60423
Mar 23, 2020
Merged

[7.x] Adding authc.grantAPIKeyAsInternalUser (#60423)#60927
kobelb merged 1 commit intoelastic:7.xfrom
kobelb:backport/7.x/pr-60423

Conversation

@kobelb
Copy link
Copy Markdown
Contributor

@kobelb kobelb commented Mar 23, 2020

Backports the following commits to 7.x:

* Parsing the Authorization HTTP header to grant API keys

* Using HTTPAuthorizationHeader and BasicHTTPAuthorizationHeaderCredentials

* Adding tests for grantAPIKey

* Adding http_authentication/ folder

* Removing test route

* Using new classes to create the headers we pass to ES

* No longer .toLowerCase() when parsing the scheme from the request

* Updating snapshots

* Update x-pack/plugins/security/server/authentication/http_authentication/http_authorization_header.ts

Co-Authored-By: Aleh Zasypkin <aleh.zasypkin@gmail.com>

* Updating another inline snapshot

* Adding JSDoc

* Renaming `grant` to `grantAsInternalUser`

* Adding forgotten test. Fixing snapshot

* Fixing mock

* Apply suggestions from code review

Co-Authored-By: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-Authored-By: Mike Côté <mikecote@users.noreply.github.com>

* Using new classes for changing password

* Removing unneeded asScoped call

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
@kobelb kobelb added the backport This PR is a backport of another PR label Mar 23, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kobelb kobelb merged commit d4e86e1 into elastic:7.x Mar 23, 2020
@kobelb kobelb deleted the backport/7.x/pr-60423 branch March 23, 2020 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants