Home
Softono

Fediverse Matrix Keygen

Open source Go
22
Stars
0
Forks
0
Issues
1
Watchers
5 years
Last Commit

 About Fediverse Matrix Keygen

a self-service Matrix account creation and login password reset utility via Mastodon or Pleroma user SSO.

Platforms

Web Self-hosted

Languages

Go

Links

Need Help Installing Fediverse Matrix Keygen?

We provide expert installation service for this software. Our team will install, configure, and secure Fediverse Matrix Keygen on your server. plans start at just $30.

Fediverse Matrix Keygen

View on GitHub

Fediverse Matrix KeyGen

a self-service Matrix account creation and password reset utility for Mastodon or Pleroma users.

How to Use

Make sure you have the following:

  • a Mastodon or Pleroma server (e.g. mastodon.my.site)
  • a Matrix synapse server (e.g. matrix.my.site)
  • a Matrix user with admin privilige, see synapse doc for how to grant admin privilige

Optionally you can have this service running behind a reverse proxy like nginx with some URL rule so that it looks like part of your existing service, e.g. it can become https://mastodon.my.site/enter-the-matrix by adding some configuration in nginx like the following:

upstream keygen {
    server          127.0.0.1:8848;
}

server {
    server_name     mastodon.my.site;
    ......
    location /enter-the-matrix {
        proxy_pass  http://keygen;
    }
}

Start the service with following parameters:

fediverse-matrix-keygen -m matrix.my.site -mu admin_user -mp admin_pass -f mastodon.my.site -u https://mastodon.my.site/enter-the-matrix -p 8848

Now users will be able to get their Matrix account from https://mastodon.my.site/enter-the-matrix .

Notes

Depending on your Matrix configuration, sometimes server name and homeserver address might be different, make sure to use the server name (the part after : in @id:matrix.org ) with -m parameter.

The matrix password reset API will logout all sessions for that user, so the user is advised to always backup encryption keys and/or passphrases, otherwise they will lose access to all encrypted history chats.

License

MIT