<p dir="auto">Uses the new features added to the bearer_authorization_header while dropping basic authentication support to simplify the creation of bearer authorization headers for API tests.</p>
<p dir="auto">This is an alternative to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2501964205" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5154" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5154/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5154">#5154</a> that goes further in simplifying things.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5155'>https://github.com/openstreetmap/openstreetmap-website/pull/5155</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5155/commits/4d221fd7a6f2914cd7403a19d0f507a8e43ba5c6" class="commit-link">4d221fd</a>  Simplify creation of bearer authorization headers</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5155/files">8 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5155/files#diff-d9b2ae2e2b75786d4664345e608b1dd8e34b7854f4714bdec7afeb29b3710159">test/controllers/api/changeset_comments_controller_test.rb</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5155/files#diff-123a7e1bd6121c8c11cbebaa72111f522c2f52e0e29a9b2ce4a49a761ea74356">test/controllers/api/messages_controller_test.rb</a>
    (78)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5155/files#diff-7ee3168144cba950374d481967d27d39db360d6dfb366aa9033b42f32cb98256">test/controllers/api/old_nodes_controller_test.rb</a>
    (19)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5155/files#diff-8e8190e84ed61c4b7d4457b6d491daae4fbe436431cd5985b364592d52271c68">test/controllers/api/old_relations_controller_test.rb</a>
    (19)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5155/files#diff-1d1ef6db64a5caea6f9e55e4038ed133a740c05263a5863c797fbfe26adc533e">test/controllers/api/old_ways_controller_test.rb</a>
    (19)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5155/files#diff-9f754279838a5317ec8ed3ecfebfe2b3b409d3464b7aac738290fbac0640d7a6">test/controllers/api/permissions_controller_test.rb</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5155/files#diff-8423ac0d20c682130833ce91a974a158c585f45101d176ab38107652b84762f5">test/controllers/api/user_preferences_controller_test.rb</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5155/files#diff-fa16feb2449d85c917bc2295eb0c38b60b48ec9415f160319d8b10b9f97ea0f7">test/controllers/api/users_controller_test.rb</a>
    (69)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5155.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5155.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5155.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5155.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5155">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLM3HW6OS2S2YMSODTTZUXZ63AVCNFSM6AAAAABNSUTV52VHI2DSMVQWIX3LMV43ASLTON2WKOZSGUYDGNBUHE4DKNQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLN7TIIFVG7QAZAMVO3ZUXZ63A5CNFSM6AAAAABNSUTV52WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJKN45AA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5155</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5155",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5155",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>