use full name, auth should not mutate request

This commit is contained in:
restrry 2019-05-27 14:07:33 +02:00
parent 52360f6d23
commit 2517c97f95
3 changed files with 3 additions and 3 deletions

View file

@ -95,7 +95,7 @@ const toolkit: AuthToolkit = {
/** @public */
export type AuthenticationHandler<T> = (
request: Request,
request: Readonly<Request>,
sessionStorage: SessionStorage<T>,
t: AuthToolkit
) => AuthResult | Promise<AuthResult>;

View file

@ -88,7 +88,7 @@ export interface OnPostAuthToolkit {
/** @public */
export type OnPostAuthHandler<Params = any, Query = any, Body = any> = (
req: KibanaRequest<Params, Query, Body>,
request: KibanaRequest<Params, Query, Body>,
t: OnPostAuthToolkit
) => OnPostAuthResult | Promise<OnPostAuthResult>;

View file

@ -98,7 +98,7 @@ const toolkit: OnPreAuthToolkit = {
/** @public */
export type OnPreAuthHandler<Params = any, Query = any, Body = any> = (
req: KibanaRequest<Params, Query, Body>,
request: KibanaRequest<Params, Query, Body>,
t: OnPreAuthToolkit
) => OnPreAuthResult | Promise<OnPreAuthResult>;