<p></p>
<blockquote>
<p dir="auto">As long as our tokens are not expiring, that information would always reflect the very first time a token has been requested. With OAuth1.0a you might see multiple entries for an app, in case they're not properly persisting the token locally, and need to request a new token.</p>
</blockquote>
<p dir="auto">I understand that (and have seen it in practice, with several pages worth of old Oauth1 that I've cleaned up recently, while Oauth2 remains clean).</p>
<p dir="auto">However I assume that when I revoke an Oauth2 app, it would disappear (from the list and from the existence) along with its token, and if I decide to grant access to that app again in the future, then it would generate new (different) token, and it would have a new timestamp too, right?</p>
<p dir="auto">If that assumption is correct, then I would find that timestamp valuable (e.g. if device with stored tokens was found to be compromised at some point it time I'd like to know what tokens were active, <em>or</em> one might just want to expire their tokens manually after some time as a good security hygiene [as auto expiration is not supported], <em>or</em> it might be useful just from readonly/historical/time-orienteering way e.g. <em>"I started using this app just after doing X, so X happened around there"</em>, etc.)</p>
<blockquote>
<blockquote>
<p dir="auto">timestamp when that authentication token was last used</p>
</blockquote>
</blockquote>
<blockquote>
<p dir="auto">That's not possible. Validating tokens is a read only database operation, i.e. a last used timestamp is not stored anywhere.</p>
</blockquote>
<p dir="auto">Ah, that's too bad. It would've been quite useful though, to spot unauthorized accesses and other things. But what can one do...</p>
<p dir="auto">Can we have just the first (i.e. token creation) timestamp then?</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/4494#issuecomment-1907208452">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJGDSWNLQWGXMDKFJTYQBRHVAVCNFSM6AAAAABCHUQ732VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBXGIYDQNBVGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPL347OTJJW35YXWWTYQBRHVA5CNFSM6AAAAABCHUQ732WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTRVWYQI.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/4494/1907208452</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/4494#issuecomment-1907208452",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/4494#issuecomment-1907208452",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>