Remove responseFactory from auth interceptor #59405
Labels
Feature:New Platform
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
In #41959 we added
authRequired: 'optional'
which changed a request termination logic for the next 2 cases:From now,
redirect
andnotHandled
logic performed by the core, depending on the current authRequired value. That makes responseFactory excessive, and we should remove it to provide the only way to redirect/reject an incoming request via authToolkit.Reject interface might look like:
to support cases when a request to Elasticsearch failed and we need to proxy an error to the client
The text was updated successfully, but these errors were encountered: