<p></p>
<h3 dir="auto">URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">How to reproduce the issue?</h3>
<ol dir="auto">
<li>
<p dir="auto">login with a test account on <a href="https://master.apis.dev.openstreetmap.org/" rel="nofollow">https://master.apis.dev.openstreetmap.org/</a></p>
</li>
<li>
<p dir="auto">get an access token to access something other than creating and commenting on notes, for example:</p>
<ol dir="auto">
<li>open in browser <a href="https://master.apis.dev.openstreetmap.org/oauth2/authorize?response_type=code&client_id=nOkiqW1fUHssu_e0Qbk6yLx7659s19CUx3nGmOP5JZk&redirect_uri=https://127.0.0.1/oauth&scope=read_prefs" rel="nofollow">https://master.apis.dev.openstreetmap.org/oauth2/authorize?response_type=code&client_id=nOkiqW1fUHssu_e0Qbk6yLx7659s19CUx3nGmOP5JZk&redirect_uri=https://127.0.0.1/oauth&scope=read_prefs</a></li>
<li>grant this application permission to read the <strong>user prefs</strong></li>
<li>get the authorization <code class="notranslate">code</code> from the URL</li>
<li>paste the <code class="notranslate">code</code> into this request at the appropriate location and POST <code class="notranslate">https://master.apis.dev.openstreetmap.org/oauth2/token?grant_type=authorization_code&code=<code>&client_id=nOkiqW1fUHssu_e0Qbk6yLx7659s19CUx3nGmOP5JZk&redirect_uri=https://127.0.0.1/oauth</code>. The response contains the <code class="notranslate">access_token</code>. Use it to...</li>
</ol>
</li>
<li>
<p dir="auto">create a note with this token: e.g. POST <code class="notranslate">https://master.apis.dev.openstreetmap.org/api/0.6/notes?lat=-13&lon=+37&text=oh%20no</code> with header <code class="notranslate">Authorization: Bearer <access_token></code></p>
</li>
<li>
<p dir="auto">A note was created in your name with an access token that doesn't have the permission to post notes.</p>
</li>
</ol>
<h3 dir="auto">Screenshot(s) or anything else?</h3>
<p dir="auto">Also works with commenting on notes.</p>
<p dir="auto">Reproducible both with OAuth 1.0a and OAuth 2.0. The OAuth 2 client in the example does not even register as (wanting to) have the create-note permission.</p>
<p dir="auto">See also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="728887314" data-permission-text="Title is private" data-url="https://github.com/westnordost/osmapi/issues/24" data-hovercard-type="issue" data-hovercard-url="/westnordost/osmapi/issues/24/hovercard" href="https://github.com/westnordost/osmapi/issues/24">westnordost/osmapi#24</a></p>
<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/issues/4362">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNSVRVJDIWCCF4WMDLYFXR3ZAVCNFSM6AAAAAA7WDMAHWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYDMMJYGE4DQMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLTEDD3U7NHTUJBJWDYFXR3ZA5CNFSM6AAAAAA7WDMAHWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHPE7H7A.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/issues/4362</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/issues/4362",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/4362",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>