trafficonese / leaflet.extras2

Extra functionality for leaflet R package.
https://trafficonese.github.io/leaflet.extras2/
GNU General Public License v3.0
85 stars 19 forks source link

addWMS - authentication for title layer #54

Open Ralikutty opened 1 year ago

Ralikutty commented 1 year ago

Hi,

I am using a leaflet map in my RShiny application and would like to access an authenticated title layer. From the documentation I see that this feature is not currently supported. If there a way to add an authorisation header(bearer token authentication) to my request using the addWMS ? Or is there a workaround for the same ?

Many thanks in advance!

trafficonese commented 1 year ago

Hey, have you tried this? https://gis.stackexchange.com/a/187239

Ralikutty commented 1 year ago

Hi, Thanks for your prompt reply :) I need to use bearer token authentication which means I need to pass a bearer token in the URL instead. I have tried the solution as suggested in https://community.rstudio.com/t/r-leaflet-wms-authorization-header/52574 with no luck. I get the same error - https://drive.google.com/file/d/1gbTpzE8oj7AehhcOIoQ4actyF3k5iQwE/view?usp=share_link