mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
use full name, auth should not mutate request
This commit is contained in:
parent
52360f6d23
commit
2517c97f95
3 changed files with 3 additions and 3 deletions
|
@ -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>;
|
||||
|
|
|
@ -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>;
|
||||
|
||||
|
|
|
@ -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>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue