mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-12 07:55:24 +00:00
This commit removes duplicated code in the authentication service by combining the authentication logic for rest and transport requests. As part of this we no longer cache the authentication token since we put the user in the context and serialize the user. Additionally we now pass the thread context to the AuthenticationFailureHandler to restore access to the headers and context. Original commit: elastic/x-pack-elasticsearch@79e2375a13