[gdal-dev] Antwort: Re: Unsupported HTTPAUTH value 'BEARER', ignored
Michael Otto
michael.otto at data-experts.de
Fri Apr 5 02:28:29 PDT 2024
Hello Even,
Your proposed solution (for version 3.8) seems to work.
Thank you very much.
Michael
Von: "Even Rouault" <even.rouault at spatialys.com>
An: "Michael Otto" <michael.otto at data-experts.de>,
gdal-dev at lists.osgeo.org
Datum: 04.04.2024 16:15
Betreff: Re: [gdal-dev] Unsupported HTTPAUTH value 'BEARER',
ignored
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 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/20240405/04f27536/attachment.htm>
More information about the gdal-dev
mailing list