kibana/docs/development/core/server/kibana-plugin-server.authtoolkit.md
Mikhail Shustov 26bd65014b
Unify response interface in handler and request interceptors (#42442) (#42918)
* 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 13:51:01 +02:00

692 B

Home > kibana-plugin-server > AuthToolkit

AuthToolkit interface

A tool set defining an outcome of Auth interceptor for incoming request.

Signature:

export interface AuthToolkit 

Properties

Property Type Description
authenticated (data?: AuthResultParams) => AuthResult Authentication is successful with given credentials, allow request to pass through