|
|
|
|
|
by ushakov
1676 days ago
|
|
i was considering somewhat similar approach, where if the user accepts a room invite i would authenticate them but this doesn’t work, because there is only one standard method of authentication, which is by sending username/password |
|
A matrix bot could send the user a short-lived token they can paste to the site to authenticate. Optional QR for mobile.
No need for homeserver changes, changing protocols or touching any user credentials.
Since you’d rely on an existing matrix session, the bot could send the token e2ee, meaning after TOFU you could even protect against malicious homeserver operators.
You could also do the inverse, having the user send the token to the bot.