<p dir="auto">Omniauth-microsoft_graph correctly populates 'email' and 'name' fields used by OpenStreetMap. It also  uses updated endpoints for Microsoft identity provider.</p>
<p dir="auto">Use email address returned by microsoft_graph provider as a verified address.</p>
<p dir="auto">Upgrading exisiting users from windowslive to microsoft_graph:</p>
<ul dir="auto">
<li>upon next login all users will have to authorize OpenStreetMap application to "Read Your Profile," required for proper reading of display name field.</li>
</ul>
<p dir="auto">The name of the identity provider in OSM is kept to 'windowslive':</p>
<ul dir="auto">
<li>the entries in users table with <code class="notranslate">provider == 'windowslive'</code> can be reused for microsoft_graph provider, since the uid field is preserved. Users will not need to repeat the sign up process.</li>
<li>OAuth2 callback is still <code class="notranslate">/auth/windowslive</code>, no updates to Microsoft Identity Provider portal App registration are necessary.</li>
</ul>

<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/4169'>https://github.com/openstreetmap/openstreetmap-website/pull/4169</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4169/commits/aba05d69f95c1b77e625e151b597a29063e159e2" class="commit-link">aba05d6</a>  Use omniauth-microsoft_graph instead of omniauth-windowslive</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4169/files">9 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4169/files#diff-d09ea66f8227784ff4393d88a19836f321c915ae10031d16c93d67e6283ab55f">Gemfile</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4169/files#diff-89cade48462044ee1b672dc5f4c3ec250fbd29effcd8932096a23c1283c6731f">Gemfile.lock</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4169/files#diff-cfdccd0a9d5df5a43aaad2a35d36ebbe187c52ad5fdc9846fa189d04537adb6e">app/controllers/users_controller.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4169/files#diff-5654cfc158c888a40321c1e90f9ea3a0208ae80616b15ff0fa5e939b8f795e87">app/views/sessions/new.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4169/files#diff-84ed1be2c135a8c628a3fb258e88c059ae24b3cb90abce9b5a5f74e96eb5c7ee">config/initializers/omniauth.rb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4169/files#diff-e769bbb8c1ba3711c5403b424ed9c218ffafba7f1890ee394717196f28ff4540">config/settings.yml</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4169/files#diff-35b4e12cc4861df996689cfdc4006b266c22d40a0ecefd2ab6c74d817e20bf8b">config/settings/test.yml</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4169/files#diff-42ba58b2050212a385282d51fd9edfd64ef3ad90633f6e8ea9359137d0128a15">lib/auth.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4169/files#diff-19aa16b7c7e0598a9b16e64733cafc53ac88bc34c658524342c0a0bffde8affc">test/integration/user_creation_test.rb</a>
    (6)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4169.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4169.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4169.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4169.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/4169">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJ3FECWML5KZKHWSK3XVJG7HANCNFSM6AAAAAA3P5XFLE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIXWZZINS7CCV5XVFLXVJG7HA5CNFSM6AAAAAA3P5XFLGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHG4RWTGQ.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/4169</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/4169",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4169",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>