<span style=" font-size:10pt;font-family:sans-serif">Hello Even,</span><br><br><span style=" font-size:10pt;font-family:sans-serif">Your proposed
solution (for version 3.8) seems to work.</span><br><span style=" font-size:10pt;font-family:sans-serif">Thank you very
much.</span><br><br><span style=" font-size:10pt;font-family:sans-serif">Michael<br></span><br><br><br><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Von:
</span><span style=" font-size:9pt;font-family:sans-serif">"Even
Rouault" <even.rouault@spatialys.com></span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">An:
</span><span style=" font-size:9pt;font-family:sans-serif">"Michael
Otto" <michael.otto@data-experts.de>, gdal-dev@lists.osgeo.org</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Datum:
</span><span style=" font-size:9pt;font-family:sans-serif">04.04.2024
16:15</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Betreff:
</span><span style=" font-size:9pt;font-family:sans-serif">Re:
[gdal-dev] Unsupported HTTPAUTH value 'BEARER', ignored</span><br><hr noshade><br><br><br><span style=" font-size:12pt">Hi,</span><br><span style=" font-size:12pt">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)</span><br><span style=" font-size:12pt">In earlier versions, you can try setting
GDAL_HTTP_HEADERS="Authentication: Bearer {your_token_here}"</span><br><span style=" font-size:12pt">Even</span><br><span style=" font-size:12pt">Le 04/04/2024 à 15:40, Michael Otto via
gdal-dev a écrit :</span><br><span style=" font-size:10pt;font-family:sans-serif">Hello,</span><span style=" font-size:12pt"><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>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.</span><span style=" font-size:12pt"><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>With HTTP-Basic authentication it seems to work with the following parameters
(no errors are logged):<br>'Auth' is my ArrayList to use in java processbuilder.</span><span style=" font-size:12pt"><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>Auth:[[--config, GDAL_HTTP_AUTH, BASIC, --config, GDAL_HTTP_USERPWD, username:password]]</span><span style=" font-size:12pt"><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>But try this for Bearer :<br>Auth:[[--config, GDAL_HTTP_AUTH, BEARER, --config, GDAL_HTTP_BEARER, token]]</span><span style=" font-size:12pt"><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>I get the following error in the error log:<br>Warning 1: Unsupported HTTPAUTH value 'BEARER', ignored.</span><span style=" font-size:12pt"><br><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>What am I doing wrong and what can I do so that Bearer authentication is
also accepted?<br>Can I use curl paramters directly instead?</span><span style=" font-size:12pt"><br></span><span style=" font-size:10pt;font-family:sans-serif"><br>Michael<br></span><span style=" font-size:12pt"><br></span><br><tt><span style=" font-size:12pt">_______________________________________________<br>gdal-dev mailing list<br></span></tt><a href="mailto:gdal-dev@lists.osgeo.org"><tt><span style=" font-size:12pt;color:blue"><u>gdal-dev@lists.osgeo.org</u></span></tt></a><tt><span style=" font-size:12pt"><br></span></tt><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev"><tt><span style=" font-size:12pt;color:blue"><u>https://lists.osgeo.org/mailman/listinfo/gdal-dev</u></span></tt></a><tt><span style=" font-size:12pt"><br></span></tt><br><tt><span style=" font-size:12pt">-- <br></span></tt><a href=http://www.spatialys.com/><tt><span style=" font-size:12pt;color:blue"><u>http://www.spatialys.com</u></span></tt></a><tt><span style=" font-size:12pt"><br>My software is free, but my time generally not.</span></tt><br><br><font face="sans-serif"></font>