Description
in certain projects a login form appears is because the GetLegendGraphic is not sending the bearer token as the other requests are doing causing an authorization error
Adding the token this requests work. The problem resides in how authentication is managed for the GetLegendGraphic, in particular here (from current master)
https://github.com/geosolutions-it/MapStore2/blob/master/web/client/utils/SecurityUtils.js#L175-L198
We should manage differently how bearer token can be added to the request using headers instead, by editing here
https://github.com/geosolutions-it/MapStore2/blob/master/web/client/plugins/TOC/components/Legend.jsx#L104
What kind of improvement you want to add? (check one with "x", remove the others)
Other useful information
Description
in certain projects a login form appears is because the GetLegendGraphic is not sending the bearer token as the other requests are doing causing an authorization error
Adding the token this requests work. The problem resides in how authentication is managed for the GetLegendGraphic, in particular here (from current master)
https://github.com/geosolutions-it/MapStore2/blob/master/web/client/utils/SecurityUtils.js#L175-L198
We should manage differently how bearer token can be added to the request using headers instead, by editing here
https://github.com/geosolutions-it/MapStore2/blob/master/web/client/plugins/TOC/components/Legend.jsx#L104
What kind of improvement you want to add? (check one with "x", remove the others)
Other useful information