1 unstable release

0.7.0 Dec 7, 2023

#724 in Authentication

Download history 293/week @ 2023-12-20 251/week @ 2023-12-27 549/week @ 2024-01-03 334/week @ 2024-01-10 532/week @ 2024-01-17 566/week @ 2024-01-24 644/week @ 2024-01-31 970/week @ 2024-02-07 575/week @ 2024-02-14 508/week @ 2024-02-21 582/week @ 2024-02-28 622/week @ 2024-03-06 707/week @ 2024-03-13 325/week @ 2024-03-20 277/week @ 2024-03-27 256/week @ 2024-04-03

1,686 downloads per month
Used in 3 crates (via mas-oidc-client)

Apache-2.0

455KB
9K SLoC

OAuth2.0 + OpenID Connect Provider for Matrix Homeservers

MAS (Matrix Authentication Service) is an OAuth 2.0 and OpenID Provider server for Matrix.

It has been created to support the migration of Matrix to an OpenID Connect (OIDC) based authentication layer as per MSC3861.

See the Documentation for information on installation and use.

You can learn more about Matrix and OIDC at areweoidcyet.com.

Delegated OIDC architecture with MAS overview

Features

  • Supported homeservers
    • ✅ Synapse
  • Authentication methods:
  • Migration support
    • ✅ Compatibility layer for legacy Matrix authentication
    • ✅ Advisor on migration readiness
    • ✅ Import users from Synapse
    • ✅ Import password hashes from Synapse
    • ✅ Import of external subject IDs for upstream identity providers from Synapse

Upstream Identity Providers

MAS is known to work with the following upstream IdPs via OIDC:


lib.rs:

OAuth 2.0 and OpenID Connect types.

This is part of the Matrix Authentication Service project.

Dependencies

~13–22MB
~345K SLoC