Skip to content

Commit

Permalink
[ML] Sending secondary auth headers to _explain
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Oct 7, 2020
1 parent 83e6c38 commit 4729bb0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions x-pack/plugins/ml/server/routes/data_frame_analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,12 @@ export function dataFrameAnalyticsRoutes({ router, mlLicense }: RouteInitializat
},
mlLicense.fullLicenseAPIGuard(async ({ client, request, response }) => {
try {
const { body } = await client.asInternalUser.ml.explainDataFrameAnalytics({
body: request.body,
});
const { body } = await client.asInternalUser.ml.explainDataFrameAnalytics(
{
body: request.body,
},
getAuthorizationHeader(request)
);
return response.ok({
body,
});
Expand Down

0 comments on commit 4729bb0

Please sign in to comment.