<p></p>
<p dir="auto">I added a separate <code class="notranslate">profile</code> scope with some additional claims - normally part of public information and easily accessible from <code class="notranslate">users</code> table. Moved <code class="notranslate">preferred_username</code> to <code class="notranslate">profile</code> scope.</p>
<p dir="auto">ID_TOKEN contains:</p>
<ul dir="auto">
<li><code class="notranslate">sub</code> (OSM user id)</li>
<li>preferred_username (OSM display name)</li>
<li>email</li>
<li>email_verified</li>
</ul>
<p dir="auto"><code class="notranslate">/oauth2/userinfo</code> endpoint returns:</p>
<ul dir="auto">
<li><code class="notranslate">sub</code></li>
<li><code class="notranslate">preferred_username</code></li>
<li><code class="notranslate">email</code></li>
<li><code class="notranslate">email_verififed</code></li>
<li><code class="notranslate">profile</code> - profile url</li>
<li><code class="notranslate">description</code> - from profile, if available</li>
<li><code class="notranslate">contributor_terms_agreed</code> (boolean)</li>
<li><code class="notranslate">changesets_count</code></li>
<li><code class="notranslate">traces_count</code></li>
</ul>
<p dir="auto">Only fields appropriate for the scope are returned:</p>
<ul dir="auto">
<li><code class="notranslate">email</code> and <code class="notranslate">email_verified</code> only for privileged users having <code class="notranslate">read_email</code> scope</li>
<li><code class="notranslate">sub</code> field is the only field returned with <code class="notranslate">openid</code> scope, The remaining fields are in <code class="notranslate">profile</code> scope</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/4226#issuecomment-1710470757">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLHGFO7VRVK3PUWXY3XZH2GRANCNFSM6AAAAAA4KPKL4I">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOHBAVBCLB6YL3LL4LXZH2GRA5CNFSM6AAAAAA4KPKL4KWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTF6O3GK.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/4226/c1710470757</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/4226#issuecomment-1710470757",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4226#issuecomment-1710470757",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>