security-dashboards-plugin icon indicating copy to clipboard operation
security-dashboards-plugin copied to clipboard

[FEATURE] Allow to others plugins run some actions when the user logs out

Open Desvelao opened this issue 2 years ago • 0 comments

In our plugin for OpenSearch Dashboards, we want to run some actions to clear the user session (for example third-party token) when the user clicks on the Log out button.

Solutions we would like:

  • Offer a way to hook or add more functionality to the action done by the Log out button in the frontend, for all the supported authentication methods by the security plugin.
  • Offer a way to hook or add more functionality to the action done by the logout endpoint for all the supported authentication methods by the security plugin.

Use cases:

  • Remove the custom cookies that store the session for third-party application
  • Do a request directly from the frontend or through an endpoint of the custom plugins for OpenSearch Dashboards to deprecate the token of third-party applications

Desvelao avatar Apr 26 '22 07:04 Desvelao