<div dir="ltr">Yes you can limit the each user to a geographic extent - but you have to build the middle ware application yourself using the MappProxy auth API.  In general the middleware would need to<div><br></div><div>- Authenticate the user (probably basic authentication).  This is not directly supported by the MapProxy API but you could use other packages as described in the docs like repoze or requests.  Alternatively you could perform the authentication in a proxy using whatever language you prefer and forward the authenticated request to MapProxy with some sort of unique identifier in the request, In our application we proxy / authenticate request using a PHP script and append UserID parameter to requests forwarded to MapProxy  </div><div>- Use the MapProxy API to construct callable "authorize" method.  This method must return a dictionary of  authorized layers and services for authenticated user as described in the docs.  In the service we've created for our user the authorize method queries a database to fetch users layers and authz status (this could include a BBOX or polygon for limited_to) and convert this to the dictionary . </div><div><br></div><div>In regards to the modification of the source,  I meant that you cannot change the source for a layer on the fly using the API.</div><div><br></div><div>Good Luck</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 20 Sep 2018 at 02:55, Fabiola Kälin <<a href="mailto:fabiola.kaelin@crosswind.ch">fabiola.kaelin@crosswind.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="DE-CH" link="blue" vlink="purple">
<div class="m_931306956153581843WordSection1">
<p class="MsoNormal"><span lang="EN-GB">I read about the possibility to limit the access to a geographical extent. However, I don’t understand if I can implement a user management or so, so that each user has access to a different
 geographical extent. <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">(I don’t understand what you mean by “This does not support the modification of the layer source”).<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Travis Kirstine <<a href="mailto:traviskirstine@gmail.com" target="_blank">traviskirstine@gmail.com</a>>
<br>
<b>Sent:</b> Mittwoch, 19. September 2018 19:27<br>
<b>To:</b> Fabiola Kälin <<a href="mailto:fabiola.kaelin@crosswind.ch" target="_blank">fabiola.kaelin@crosswind.ch</a>><br>
<b>Cc:</b> mapproxy <<a href="mailto:mapproxy@lists.osgeo.org" target="_blank">mapproxy@lists.osgeo.org</a>><br>
<b>Subject:</b> Re: [MapProxy] WMS User Management using MapProxy and ArcGIS Server<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">MapProxy does support limiting the access to layer based on a geographical extent using the authn / authz API<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="https://mapproxy.org/docs/nightly/auth.html#limited-to" target="_blank">https://mapproxy.org/docs/nightly/auth.html#limited-to</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">This does not support the modification of the layer source.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Wed, 19 Sep 2018 at 08:26, Fabiola Kälin <<a href="mailto:fabiola.kaelin@crosswind.ch" target="_blank">fabiola.kaelin@crosswind.ch</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><span lang="EN-GB">Dear list</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">I have a general question regarding the user management using MapProxy in combination with ArcGIS Server. I’d like to publish a secured WMS. For each user, the
 same layers shall be available, but a different geography (i.e. each user shall see the data of a different municipality / province).</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">For example: Is it possible to use the user management of ArcGIS Server, but to define a polygon for each user in MapProxy?</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">What are the possibilities? Do you have any experience doing something similar? What is the best way of implementing this?</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB">Thanks in advance for your inputs, cheers.</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org" target="_blank">MapProxy@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapproxy" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapproxy</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>

</blockquote></div>