security-dashboards-plugin
security-dashboards-plugin copied to clipboard
[BUG] Setting default route does not change from `/app/home` for IDP auth
Setting default route does not change from /app/home for IDP initiated Authentication
Steps to reproduce the behavior:
Login to dashboards, change default route - no issues here
On SDP initiated auth - throws 403 access denied error
New route should get updated without error. Fix: To change hard-coded route here: https://github.com/opensearch-project/security-dashboards-plugin/blob/main/server/auth/types/saml/routes.ts#L223
Fix is to remove hard-coded routeopensearch-dashboards and fetch it from .kibana index setting so auth always picks up latest route path.
@DarshitChanpura Could you look into this?