Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Matrix (Synapse/Element)
  3. We need the Matrix Authentication Service (MAS)

We need the Matrix Authentication Service (MAS)

Scheduled Pinned Locked Moved Matrix (Synapse/Element)
masmatrixauthentication
17 Posts 7 Posters 3.6k Views 9 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG girish

    @jdaviescoates 🙂 @nebulon also attended the matrix talk in FOSDEM and they mentioned MAS is the way forward. It's in our internal task list, let's see when @vladimir.d can get to it.

    jdaviescoatesJ Offline
    jdaviescoatesJ Offline
    jdaviescoates
    wrote on last edited by
    #6

    @girish said in We need the Matrix Authentication Service (MAS):

    It's in our internal task list, let's see when @vladimir.d can get to it.

    Great! Looking forward to it! 🤞 🙏

    I use Cloudron with Gandi & Hetzner

    1 Reply Last reply
    2
    • potemkin_aiP Offline
      potemkin_aiP Offline
      potemkin_ai
      wrote on last edited by
      #7

      @vladimir.d , @girish , is there any possible estimate on that? Would you be open to accept any help on that?

      1 Reply Last reply
      2
      • J Offline
        J Offline
        joseph
        Staff
        wrote on last edited by
        #8

        https://git.cloudron.io/packages/synapse-app is the package and MRs are welcome . (don't have an ETA myself)

        potemkin_aiP 1 Reply Last reply
        1
        • J joseph

          https://git.cloudron.io/packages/synapse-app is the package and MRs are welcome . (don't have an ETA myself)

          potemkin_aiP Offline
          potemkin_aiP Offline
          potemkin_ai
          wrote on last edited by
          #9

          @joseph thank you.

          I'm quite limited in time to make the transition, guess I will eject the Synapse service to run it separately then: from what I've read, a separate service required to do the MAS and as the works hasn't been started yet, I guess it will take quite some time to make it to the production on Cloudron (understandable to keep things stable).

          J 1 Reply Last reply
          1
          • potemkin_aiP potemkin_ai

            @joseph thank you.

            I'm quite limited in time to make the transition, guess I will eject the Synapse service to run it separately then: from what I've read, a separate service required to do the MAS and as the works hasn't been started yet, I guess it will take quite some time to make it to the production on Cloudron (understandable to keep things stable).

            J Offline
            J Offline
            joseph
            Staff
            wrote on last edited by
            #10

            @potemkin_ai yeah, we will implement this soon enough. we use matrix for company chat ourselves. matrix.org also switched to mas per https://matrix.org/blog/2025/04/matrix-auth-service/ . matter of time @vladimir.d gets to it

            1 Reply Last reply
            3
            • potemkin_aiP potemkin_ai referenced this topic on
            • potemkin_aiP Offline
              potemkin_aiP Offline
              potemkin_ai
              wrote on last edited by
              #11

              I believe I assembled a first version, but got stuck with OpenID auth on Cloudron side: https://forum.cloudron.io/topic/13648/openid-uri-configuration-issue-for-synapse-s-mas

              I would appreciate any help here - it would be beneficial for the work to be done by @vladimir.d or whoever would be solving the same task.

              andreasduerenA 1 Reply Last reply
              5
              • potemkin_aiP potemkin_ai

                I believe I assembled a first version, but got stuck with OpenID auth on Cloudron side: https://forum.cloudron.io/topic/13648/openid-uri-configuration-issue-for-synapse-s-mas

                I would appreciate any help here - it would be beneficial for the work to be done by @vladimir.d or whoever would be solving the same task.

                andreasduerenA Offline
                andreasduerenA Offline
                andreasdueren
                wrote on last edited by
                #12

                @potemkin_ai Where is your code? Not an expert but I'm willing to take a look

                1 Reply Last reply
                2
                • girishG girish

                  @jdaviescoates 🙂 @nebulon also attended the matrix talk in FOSDEM and they mentioned MAS is the way forward. It's in our internal task list, let's see when @vladimir.d can get to it.

                  jdaviescoatesJ Offline
                  jdaviescoatesJ Offline
                  jdaviescoates
                  wrote on last edited by jdaviescoates
                  #13

                  @girish said in We need the Matrix Authentication Service (MAS):

                  @jdaviescoates 🙂 @nebulon also attended the matrix talk in FOSDEM and they mentioned MAS is the way forward. It's in our internal task list, let's see when @vladimir.d can get to it.

                  Any update on this?

                  I just realised 1.0.0 was released two days ago!

                  https://github.com/element-hq/matrix-authentication-service/releases/tag/v1.0.0

                  BTW, I just noticed that in my Cloudron Dashboard is says "login with dedicated account":

                  0f4ba928-c86a-4f91-8cab-d422dcec9373-image.png

                  But it's actually using OIDC:

                  0f154357-0546-4d7d-bd86-286160a55a10-image.png

                  What's going on there? 🤷

                  Either way, I'm hoping we can have MAS soon and that that will make Element X work with my instance 🤞

                  I use Cloudron with Gandi & Hetzner

                  1 Reply Last reply
                  1
                  • potemkin_aiP Offline
                    potemkin_aiP Offline
                    potemkin_ai
                    wrote on last edited by
                    #14

                    Yeah, MAS jumped from all of the sudden from 0.2.something to 1.0 - very well... And that is all with 136 issues opened, including the issue when the user won't be created as it should.

                    I've ejected Synapse from Cloudron and run it independently - it is kind of working (if you don't mind get your hands dirty in the database), but if you don't need Element Calls - I can't see no real benefits.

                    Not sure if the question was anyhow directed on me, but I hope that rant might be of some use anyway 🙂

                    1 Reply Last reply
                    3
                    • nottheendN nottheend referenced this topic on
                    • girishG girish

                      @jdaviescoates 🙂 @nebulon also attended the matrix talk in FOSDEM and they mentioned MAS is the way forward. It's in our internal task list, let's see when @vladimir.d can get to it.

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #15

                      @girish said in We need the Matrix Authentication Service (MAS):

                      @jdaviescoates 🙂 @nebulon also attended the matrix talk in FOSDEM and they mentioned MAS is the way forward. It's in our internal task list, let's see when @vladimir.d can get to it.

                      @ntnsndr FYI I think this is the latest (saw you commented on the related thread about Element X)

                      I use Cloudron with Gandi & Hetzner

                      1 Reply Last reply
                      0
                      • compotterC Offline
                        compotterC Offline
                        compotter
                        wrote last edited by
                        #16

                        Hey, I assume there are no news about this topic? I have one user, that is not able to see chats in the classic/legacy apps but only on Element X. But this comes with the downside og not being able to make calls 😕
                        (Besides that the classic apps are barely getting any updates anymore)

                        1 Reply Last reply
                        1
                        • andreasduerenA Offline
                          andreasduerenA Offline
                          andreasdueren
                          wrote last edited by
                          #17

                          I did some digging, this is what I think is needed:

                          The current package uses:

                          • Synapse v1.144.0 (which is compatible - MAS requires v1.136.0+)
                          • Cloudron OIDC for SSO (traditional OIDC provider approach)
                          • PostgreSQL as the database
                          • Standard Matrix authentication endpoints

                          What MAS Integration Requires
                          MAS is fundamentally different from traditional OIDC - it's not just another identity provider, but a complete replacement for Synapse's internal authentication system per MSC3861. It needs:

                          1. MAS Service Deployment

                          • MAS needs to run as a separate service (not just a config change)
                          • It requires its own separate PostgreSQL database
                          • It needs its own domain/subdomain (e.g., auth.matrix.example.com)
                          • Docker image: ghcr.io/element-hq/matrix-authentication-service:latest

                          2. MAS Configuration Requirements

                          • Encryption secrets and signing keys (RSA minimum)
                          • Connection to Synapse via shared secret
                          • Database configuration for its own PostgreSQL database
                          • HTTP listener configuration
                          • Email configuration for password recovery
                          • Policy configuration (WASM file)

                          3. Synapse Configuration Changes
                          Replace traditional OIDC with matrix_authentication_service section:

                          matrix_authentication_service:
                            enabled: true
                            endpoint: http://mas-internal:8080/
                            secret: "SharedSecretWithMAS"
                          

                          4. Reverse Proxy Changes
                          These Matrix endpoints must be routed to MAS (not Synapse):

                          • /_matrix/client/*/login
                          • /_matrix/client/*/logout
                          • /_matrix/client/*/refresh

                          5. User Migration (For Existing Deployments)
                          MAS includes syn2mas tool to migrate:

                          • Existing password hashes (bcrypt → argon2id)
                          • Sessions and devices
                          • Access tokens
                          • Upstream IdP mappings
                          1 Reply Last reply
                          4
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Bookmarks
                          • Search