[GeoNode-users] wfs and basic authentication
Paolo Corti
pcorti at gmail.com
Mon Dec 16 09:44:07 PST 2019
I figure out the way looking at this:
https://github.com/GeoNode/geonode/issues/5297
(thanks Toni!)
So it is possible to use basic authentication, by using the proxified url:
wfs = WebFeatureService('http://localhost:8000/gs/ows',
version='1.1.0', username=username, password=password)
best
Paolo
On Fri, Dec 13, 2019 at 4:26 PM Paolo Corti <pcorti at gmail.com> wrote:
>
> Hello
>
> I have an application which was working in GeoNode 2.4 and have to
> migrate it to GeoNode 2.10.1.
> The application uses OWSLib with basic authentication. This line of
> code - which used to work - now returns a 401.
>
> wfs = WebFeatureService(url='http://localhost:8080/geoserver/wfs',
> username='admin', password='geoserver')
>
>
> Is there a way to make this working?
>
> thanks
> Paolo
>
> --
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
> #drt3jc1
--
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
#drt3jc1
More information about the geonode-users
mailing list