mastodon / mastodon

Your self-hosted, globally interconnected microblogging community
https://joinmastodon.org
GNU Affero General Public License v3.0
46.82k stars 6.91k forks source link

e-mailless authentication #31986

Open paboum opened 5 days ago

paboum commented 5 days ago

Pitch

Requiring a working SMTP server is significantly increasing deployment cost and complexity.

There is also a number of reasons why e-mail should not be an identifier, especially in distributed networks: https://spaces.at.internet2.edu/display/federation/why-is-email-not-an-appropriate-user-identifier

Thirdly, we live in 2024, era of passkeys, TOTP, U2F, these are the authentication methods a modern service should strive for.

What I propose is to choose from the following:

Motivation

Instance admins would have their lives easier during deployment. Instance operations costs would save on mailing service. Users wouldn't be at risk of their personal data leakage, nor spam, nor account theft. The whole community would be less dependant on Google's spam filters for the very least.

Besides, it's not just my request, the trend for authentication methods is already set, it's only matter of like 10 years nobody prudent will even visit sites that use e-mails for authentication.

rasos commented 2 days ago

Or use an IDM such as Keycloak and connect via OIDC. Keycloak usually also sends notifications via e-mail, but you could also configure it to use 2FA instead.