[gdal-dev] Authentication bearer token for WFS driver

Even Rouault even.rouault at spatialys.com
Fri Jul 8 14:19:39 PDT 2022


Francesco,

You should rather set the GDAL_HTTP_HEADER_FILE configuration option / 
environment variable to the filename of a text file which contains a 
line like

Authorization: Bearer XXXX

Even

Le 08/07/2022 à 23:12, Francesco Bartoli a écrit :
> Hi devs,
>
> is that authentication mechanism supported to consume a GeoServer 
> layer protected by an OpenID Connect provider? I’m trying to implement 
> a pygeoapi collection protected by the same OIDC provider via the OGR 
> plugin but I need to figure out how the GDAL command line request 
> would look like to pass the bearer token through.
>
> Do you have an example for the authentication scheme once the 
> *HttpAuth* has been set to *ANY* (ref. 
> https://gdal.org/drivers/vector/wfs.html#dataset-name-syntax)?
>
> Thank you in advance for your help.
>
> Francesco
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220708/f7885e6d/attachment.htm>


More information about the gdal-dev mailing list