mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
Currently the security context is an object passed around to code needing to check the user for the current request. Like recent InternalClient changes, it current depends on the AuthenticationService, but can be simplified by only knowing about the thread context and crypto service. This change makes SecurityContext a class, instead of an interface, and removes the dependency on AuthenticationService. Original commit: elastic/x-pack-elasticsearch@b8af75e8cb