<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Francesco,</p>
    <p>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</p>
    <p>Authorization: Bearer XXXX</p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 08/07/2022 à 23:12, Francesco
      Bartoli a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:22c373ed-69a8-409b-af17-9fd1567bfab3@Spark">
      <title></title>
      <div name="messageBodySection">
        <div dir="auto">Hi devs,<br>
          <br>
          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.<br>
          <br>
          Do you have an example for the authentication scheme once the <strong>HttpAuth</strong> has
          been set to <strong>ANY</strong> (ref. <a
            href="https://gdal.org/drivers/vector/wfs.html#dataset-name-syntax"
            target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://gdal.org/drivers/vector/wfs.html#dataset-name-syntax</a>)?<br>
          <br>
          Thank you in advance for your help.</div>
      </div>
      <div name="messageSignatureSection"><br>
        <span>Francesco</span></div>
      <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>