Skip to content

Commit

Permalink
use full name, auth should not mutate request
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed May 27, 2019
1 parent 52360f6 commit 2517c97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/server/http/lifecycle/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/http/lifecycle/on_post_auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;

Expand Down
2 changes: 1 addition & 1 deletion src/core/server/http/lifecycle/on_pre_auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;

Expand Down

0 comments on commit 2517c97

Please sign in to comment.