Hi,
GDAL_HTTP_AUTH=BEARER support has been added in master / GDAL 3.9dev
only (I've just fixed an erroneous statement about it being in 3.8)
In earlier versions, you can try setting
GDAL_HTTP_HEADERS="Authentication: Bearer {your_token_here}"
Even
Le 04/04/2024 à 15:40, Michael Otto via gdal-dev a écrit :
Hello,
I am trying to pass an authentication for requests to WFS services. As
a test, I have activated the logging of curl and have the errors
output to a log file.
With HTTP-Basic authentication it seems to work with the following
parameters (no errors are logged):
'Auth' is my ArrayList to use in java processbuilder.
Auth:[[--config, GDAL_HTTP_AUTH, BASIC, --config, GDAL_HTTP_USERPWD,
username:password]]
But try this for Bearer :
Auth:[[--config, GDAL_HTTP_AUTH, BEARER, --config, GDAL_HTTP_BEARER,
token]]
I get the following error in the error log:
Warning 1: Unsupported HTTPAUTH value 'BEARER', ignored.
What am I doing wrong and what can I do so that Bearer authentication
is also accepted?
Can I use curl paramters directly instead?
Michael
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev