Giter Site home page Giter Site logo

freewizard / fediverse-matrix-keygen Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 0.0 3 KB

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

Shell 4.90% Go 95.10%
fediverse mastodon matrix pleroma synapse nginx

fediverse-matrix-keygen's Introduction

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

fediverse-matrix-keygen's People

Contributors

du-song avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.