Pitch
Currently Access Tokens are valid indefinitely. However for most applications this is not needed at all. Therefore I propose:
- Applications should be able to set expiration dates of their tokens
- All tokens should have an expiration date of e.g. 1 month by default
- This should apply retroactively
- There should be an easy way for Mastodon Admins to revoke all tokens for a specific app name.
- Users should be able to revoke all tokens at once, not just one-by-one
Motivation
Access tokens are a security risk. Most users forget, that they installed an app and forget to check their /oauth/authorized_applications settings. When using clients like elk etc. there is actually no way to check your authorised apps. Many Mastodon Projects are currently hobby projects without hardened security checks, so it is conceivable, that access tokens get leaked from time to time, even without accounting for nefarious actors. Many mastodon users have inactive accounts and wouldn't even notice if their tokens get stolen and used for spam. Given the high risk from spam to the fediverse and mastodon this is a fundamental risk to the entire network.
Pitch
Currently Access Tokens are valid indefinitely. However for most applications this is not needed at all. Therefore I propose:
Motivation
Access tokens are a security risk. Most users forget, that they installed an app and forget to check their /oauth/authorized_applications settings. When using clients like elk etc. there is actually no way to check your authorised apps. Many Mastodon Projects are currently hobby projects without hardened security checks, so it is conceivable, that access tokens get leaked from time to time, even without accounting for nefarious actors. Many mastodon users have inactive accounts and wouldn't even notice if their tokens get stolen and used for spam. Given the high risk from spam to the fediverse and mastodon this is a fundamental risk to the entire network.