Skip to content

Commit

Permalink
Fix: plugin api route with security enabled (elastic#23334) (elastic#…
Browse files Browse the repository at this point in the history
…23402)

Closes elastic#23266

This is more of a quick fix than the final solution. The issue was that Canvas tries to check the plugins API without checking to see if the user it logged in. As a result, instead of the plugins response, it gets the HTML from the login page and that causes an error to be thrown when attempting to parse the results.

For now, this PR just disables the auth requirement on the Canvas plugin API endpoint.
  • Loading branch information
cqliu1 authored Sep 21, 2018
1 parent b93b868 commit 61b67e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x-pack/plugins/canvas/server/routes/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ export function plugins(server) {

reply(getPluginStream(type));
},
config: {
auth: false,
},
});
}

0 comments on commit 61b67e3

Please sign in to comment.