[GeoNode-users] Geonode & Geoserver - Secure WMS

Pascal Coulon Pascal.Coulon at scisys.co.uk
Mon Jan 22 13:02:28 PST 2018

Brilliant - very useful - exactly what we are about to implement. If this works as per explained we will feedback here.

Pascal Coulon
GIS Technical Architect - Enterprise Solutions & Defence
T: +44 (0)117 9165237 | F: +44 (0)1249 465237 | M:+44 (0) 7876397844
E: pascal.coulon at scisys.co.uk<mailto:pascal.coulon at scisys.co.uk> | http://www.scisys.co.uk<http://www.scisys.co.uk/>

From: Francesco Bartoli [mailto:xbartolone at gmail.com]
Sent: 22 January 2018 20:59
To: Alessio Fabiani
Cc: Pascal Coulon; geonode-users at lists.osgeo.org
Subject: Re: [GeoNode-users] Geonode & Geoserver - Secure WMS

Never tried this https://github.com/GeoNode/geonode/pull/3415 but it should allow to get an access token from external applications.

@Pascal, it is worth a look and maybe a PR for geonode docs on how to use it.


Il giorno 22/gen/2018, alle ore 19:02, Alessio Fabiani <alessio.fabiani at geo-solutions.it<mailto:alessio.fabiani at geo-solutions.it>> ha scritto:

Hello Pascal,
currently, without further customizations, the only way to access resources from external clients is by putting the valid OAUth2 access_token generated by GeoNode into the OWS request URL parameters.

To retrieve this, you need to log into GeoNode, go to any layer details, click on "Download Layer" and copy the "access_token" query parameter from any of the generated query strings.

There are plans to make it more easy for the users to retrieve the access_token from GeoNode in the future, but currently this is the only way to do this.

Alessio Fabiani
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.

Ing. Alessio Fabiani
Founder/Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39 331 6233686


Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

2018-01-22 18:50 GMT+01:00 Pascal Coulon <Pascal.Coulon at scisys.co.uk<mailto:Pascal.Coulon at scisys.co.uk>>:

I have a use case where I need to securely access OGC services managed by GeoNode, Geoserver and GeoFence. Access is required outside Geonode portal into third party application: desktop, other spatial web portal, etc.

Geonode is used as the gateway to manage all datasets. On setting the permissions on a given datasets the relevant permissions are being pushed to GeoFence via its rest API. By default a ground data rule is set by default in GeoFence that prevent accessing / viewing all datasets; which means that then datasets would only be visible based on permissions set in GeoNode.

The above part makes sense as long as one browses the data only in GeoNode. However, as soon as one wants to access the OGC end points in say QGIS / ArcMAP (e.g. wms, wfs) available on http://mydomain/geoserver/geonode/wms, you are not anymore authenticated. I have already looked into basic authentication; but as far as I understand it, this approach requires recreating the Geonode user in GeoServer.

What are the options then for a desktop / third party application's user to access the secure OGC end-points managed through Geonode? Which Geoserver authentication filter one should use?

Hope this makes sense. Any thoughts or pointer would be greatly appreciated.



SCISYS UK Limited. Registered in England and Wales No. 4373530.
Registered Office: Methuen Park, Chippenham, Wiltshire SN14 0GB, UK.

Before printing, please think about the environment.

geonode-users mailing list
geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>

geonode-users mailing list
geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180122/be99d28f/attachment-0001.html>

More information about the geonode-users mailing list