<p>Before this patch, a domain in the digest username was allowed:</p>

<pre><code>Digest username="abc@domain", realm="domain"
</code></pre>

<p>but only if the domain is equal to the realm. This was introduced in<br>
<a href="https://github.com/OpenSIPS/opensips/commit/a92bf789" class="commit-link"><tt>a92bf78</tt></a> (Juha Heinanen, Mar. 29 2006).</p>

<p>The SIP spec. doesn't mention any such restriction.</p>

<p>This patch undoes that commit and makes sure the whole username is used<br>
when authenticating through <code>pv_www_authorize</code> and <code>pv_proxy_authorize</code>.<br>
That makes the following valid:</p>

<pre><code>Digest username="abc@domain", realm="something different"
</code></pre>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/wdoekes/opensips wjd-allow_domain_in_digest_user</pre>
<p>Or view, comment on, or merge it at:</p>
<p>&nbsp;&nbsp;<a href='https://github.com/OpenSIPS/opensips/pull/164'>https://github.com/OpenSIPS/opensips/pull/164</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>digest+m_auth: Allow a domain in the digest username.</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/164/files#diff-0">modules/auth/auth_mod.c</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/164/files#diff-1">parser/digest/digest.c</a>
    (7)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/OpenSIPS/opensips/pull/164.patch'>https://github.com/OpenSIPS/opensips/pull/164.patch</a></li>
  <li><a href='https://github.com/OpenSIPS/opensips/pull/164.diff'>https://github.com/OpenSIPS/opensips/pull/164.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href='https://github.com/OpenSIPS/opensips/pull/164'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwNzEyMjY0NywiZGF0YSI6eyJpZCI6MjQ5Njg5NTJ9fQ==--c825e67f63aa654247b99c2dffebaf42e6acb9fd.gif' height='1' width='1'></p>