[MapProxy] WMS User Management using MapProxy and ArcGIS Server
Travis Kirstine
traviskirstine at gmail.com
Thu Sep 20 06:10:34 PDT 2018
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
- 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
- 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 .
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.
Good Luck
On Thu, 20 Sep 2018 at 02:55, Fabiola Kälin <fabiola.kaelin at crosswind.ch>
wrote:
> 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.
>
> (I don’t understand what you mean by “This does not support the
> modification of the layer source”).
>
>
>
> *From:* Travis Kirstine <traviskirstine at gmail.com>
> *Sent:* Mittwoch, 19. September 2018 19:27
> *To:* Fabiola Kälin <fabiola.kaelin at crosswind.ch>
> *Cc:* mapproxy <mapproxy at lists.osgeo.org>
> *Subject:* Re: [MapProxy] WMS User Management using MapProxy and ArcGIS
> Server
>
>
>
> MapProxy does support limiting the access to layer based on a geographical
> extent using the authn / authz API
>
>
>
> https://mapproxy.org/docs/nightly/auth.html#limited-to
>
>
>
> This does not support the modification of the layer source.
>
>
>
>
>
>
>
> On Wed, 19 Sep 2018 at 08:26, Fabiola Kälin <fabiola.kaelin at crosswind.ch>
> wrote:
>
> Dear list
>
>
>
> 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).
>
>
>
> For example: Is it possible to use the user management of ArcGIS Server,
> but to define a polygon for each user in MapProxy?
>
> What are the possibilities? Do you have any experience doing something
> similar? What is the best way of implementing this?
>
>
>
> Thanks in advance for your inputs, cheers.
>
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapproxy
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20180920/4b5dc282/attachment.html>
More information about the MapProxy
mailing list