Commit graph

2 commits

Author SHA1 Message Date
Mikhail Shustov
cfad1013db
Fake request interface compatible with Kibana Request (#40363) (#40409)
* make FakeRequest compatible with http request

* FakeRequest compatible with Http Request
2019-07-05 14:51:58 +02:00
Mikhail Shustov
708666a5a9
Restrict access to hapi Request in registerAuth (#38763) (#39151)
* Prevent exposing Hapi.Request to registerAuth.

Prevent exposing headers.authorization in KibanaRequest.
Introduce a mechanism to associate authorization headers with an
incoming request and retrieve its value to perform a request to
elasticsearch cluster.

* fix tests

* address @joshdover comments
2019-06-18 15:04:31 +02:00