<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>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)</p>
    <p>In earlier versions, you can try setting
      GDAL_HTTP_HEADERS="Authentication: Bearer {your_token_here}"</p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 04/04/2024 à 15:40, Michael Otto via
      gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:OF53AFCAA7.613091E3-ONC1258AF5.004AA1D0-C1258AF5.004B18F3@data-experts.de">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <span style=" font-size:10pt;font-family:sans-serif">Hello,</span><br>
      <br>
      <span style=" font-size:10pt;font-family:sans-serif">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><br>
      <br>
      <span style=" font-size:10pt;font-family:sans-serif">With
        HTTP-Basic
        authentication it seems to work with the following parameters
        (no errors
        are logged):</span><br>
      <span style=" font-size:10pt;font-family:sans-serif">'Auth' is my
        ArrayList
        to use in java processbuilder.</span><br>
      <br>
      <span style=" font-size:10pt;font-family:sans-serif">Auth:[[--config,
        GDAL_HTTP_AUTH, BASIC, --config, GDAL_HTTP_USERPWD,
        username:password]]</span><br>
      <br>
      <span style=" font-size:10pt;font-family:sans-serif">But try this
        for
        Bearer :</span><br>
      <span style=" font-size:10pt;font-family:sans-serif">Auth:[[--config,
        GDAL_HTTP_AUTH, BEARER, --config, GDAL_HTTP_BEARER, token]]</span><br>
      <br>
      <span style=" font-size:10pt;font-family:sans-serif">I get the
        following
        error in the error log:</span><br>
      <span style=" font-size:10pt;font-family:sans-serif">Warning 1:
        Unsupported
        HTTPAUTH value 'BEARER', ignored.</span><br>
      <br>
      <br>
      <span style=" font-size:10pt;font-family:sans-serif">What am I
        doing
        wrong and what can I do so that Bearer authentication is also
        accepted?</span><br>
      <span style=" font-size:10pt;font-family:sans-serif">Can I use
        curl
        paramters directly instead?</span><br>
      <br>
      <span style=" font-size:10pt;font-family:sans-serif">Michael</span><br>
      <span style=" font-size:10pt;font-family:sans-serif"><br>
      </span>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>