<p></p>
<p>I think <a href="https://tools.ietf.org/html/rfc8252#section-7.3" rel="nofollow">https://tools.ietf.org/html/rfc8252#section-7.3</a> would be relevant here. Note the following requirement regarding 127.0.0.1:</p>
<blockquote>
<p>The authorization server MUST allow any port to be specified at the<br>
time of the request for loopback IP redirect URIs, to accommodate<br>
clients that obtain an available ephemeral port from the operating<br>
system at the time of the request.</p>
</blockquote>
<p>I'm not sure if doorkeeper already allows any port for loopback communication.</p>
<p>Section 7.1 ("Private-Use URI Scheme Redirection") also seems interesting for mobile apps. It would be good if more mobile app devs could join this discussion, to see what requirements they have.</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/3177#issuecomment-822586164">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLLN23RXXBYYC3JMQLTJRH33ANCNFSM4234LSSQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLIU3DPF55Z6E6O3DBDTJRH33A5CNFSM4234LSS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGED2WNA.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/3177#issuecomment-822586164",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3177#issuecomment-822586164",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>