<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Tito,<br>
      <br>
      You can do that by fetching the password via an explicit DB query
      from script and pushing it for auth check using
      pv_www_authorize():<br>
         
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.3.x/auth.html#idp5590848">http://www.opensips.org/html/docs/modules/2.3.x/auth.html#idp5590848</a><br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>

OpenSIPS Bootcamp 2017, Huston, US
  <a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2017.html">http://opensips.org/training/OpenSIPS_Bootcamp_2017.html</a>
</pre>
    <div class="moz-cite-prefix">On 05/25/2017 04:51 PM, Tito Cumpen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANZPVB6nx-wqCsqQD=0P_oYawY_SnU_mYMQN+PnC2RJO41YWcA@mail.gmail.com"
      type="cite">
      <div dir="auto">
        <div dir="auto">Group,</div>
        <div dir="auto"><br>
        </div>
        Is it possible to use a rest api for auth_db? Meaning can
        opensips authenticate a user based on a rest query against a
        rest api? I thought about using db http by fronting the request
        with a local http server but I don't see a way to pass a custom
        headers to the query. This custom header would contain the auth
        session token.
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Thanks,</div>
        <div dir="auto">Tito</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>