<p></p>
<p>It seems that cgimap would at least need to call an Introspection endpoint via HTTP(S) to validate a user-provided token and get further details such as user ids, scopes and whatnot (<a href="https://tools.ietf.org/html/rfc7662#section-2" rel="nofollow">https://tools.ietf.org/html/rfc7662#section-2</a>).</p>
<p>As we share the same database anyway, there might be some way to directly query the respective doorkeeper tables, as we do today with OAuth 1.0a  (<a href="https://doorkeeper.gitbook.io/guides/internals/database-design" rel="nofollow">https://doorkeeper.gitbook.io/guides/internals/database-design</a>).</p>
<p>Most of the work to get this up and running seems to be on the Rails side of the house this time.</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/issues/1408#issuecomment-691714441">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPJHUBDQLCS7662MGDSFUM4DANCNFSM4C3VTPOA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLLCQPVKZQDMCQKOYXLSFUM4DA5CNFSM4C3VTPOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFE5LTCI.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/issues/1408#issuecomment-691714441",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/1408#issuecomment-691714441",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>