<p></p>
<p>No, it's the same when I register a new app, clean up all cookies in Postman and authorize a user for the first time.</p>
<p>I believe, <code>client.scopes</code> in doorkeeper.rb refers to the application level scopes, which I have set when registering a new OAuth2 application.</p>
<pre><code>  skip_authorization do |_, client|
    client.scopes.include?("skip_authorization")
  end
</code></pre>
<p>In debug mode, I'm always seeing all three scopes, regardless of what I have specified in Postman when requesting a new access token:</p>
<pre><code>>> client.scopes
=> #<Doorkeeper::OAuth::Scopes:0x00007f793029c218 @scopes=["read_prefs", "read_email", "skip_authorization"]>
</code></pre>
<p>My question here would be: which of those two should take precedence:</p>
<ul>
<li>the scopes used when registering the application, or</li>
<li>the scopes provided when authorizing a user</li>
</ul>
<p>As I mentioned, I would be ok with option 1. The advantage is that you don't have to specify the skip_authorization scope in Discourse.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3300#issuecomment-907334173">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLM7GPQXNTIDGY3HHW3T666HFANCNFSM5CXNMGEA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAK2OLPERB3EE5LAQ5O3XQTT666HFA5CNFSM5CXNMGEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGYKNEHI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/3300#issuecomment-907334173",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3300#issuecomment-907334173",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>