kibana/x-pack/plugins/security
Mikhail Shustov 06adc737d9
Unify response interface in handler and request interceptors (#42442)
* add response factory to the interceptors

* adopt x-pack code to the changes

* Add a separate response factory for lifecycles.

Only route handler can respond with 2xx response.
Interceptors may redirect or reject an incoming request.

* re-generate docs

* response.internal --> response.internalError

* use internalError for exceptions in authenticator

* before Security plugin proxied ES error status code. now sets explicitly.

* provide error via message field of error response for BWC

* update docs

* add customError response

* restore integration test and update unit tests

* update docs

* support Hapi error format for BWC

* add a couple of tests
2019-08-08 12:07:43 +02:00
..
common/model Migrate authentication subsystem to the new platform. (#39446) 2019-07-19 11:09:49 +02:00
server Unify response interface in handler and request interceptors (#42442) 2019-08-08 12:07:43 +02:00
kibana.json Migrate authentication subsystem to the new platform. (#39446) 2019-07-19 11:09:49 +02:00