[MapProxy] MapProxy security with JWT and dynamic layers update in config file

Omer Tombul devtombulomer at gmail.com
Wed May 5 09:51:39 PDT 2021


Hi,

I am new in MapProxy and I am implementing a cache service for WMS. 

I have 2 problems as follow:

1. We use a JWT token to access our local WMS server and I need to be able to add the token in the request.

Is there a way to pass the dynamically generated token that is sent from our frontend client to MapProxy server and add the token to the URL ?
Ex.:  
sources:
  hochelaga_wms:
    type: wms
    req:
      url: http://localhost:8765/api/mis/wms?organizationId=61403f98-859c-41df-a2b8-13707d4cd2b0&accessToken=theToken <http://localhost:8765/api/mis/wms?organizationId=61403f98-859c-41df-a2b8-13707d4cd2b0&accessToken=theToken> 
      layers: 97d4cf79-1113-4fd8-b24b-b66e68f7ee79
    coverage:
      bbox: [-8190253.484922162, 5704855.075392509, -8185972.796654748, 5710579.22198825]
bbox_srs: 'EPSG:3857’


2. Our layers can change dynamically and I would like to know is there a way to update them in the .yaml config file for the MapProxy server ? 



Thank you,
Omer Tombul

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20210505/cee2f6c6/attachment.html>


More information about the MapProxy mailing list