1 unstable release

0.7.0 Dec 7, 2023

#222 in Authentication

Download history 393/week @ 2023-12-17 239/week @ 2023-12-24 353/week @ 2023-12-31 472/week @ 2024-01-07 308/week @ 2024-01-14 657/week @ 2024-01-21 609/week @ 2024-01-28 1093/week @ 2024-02-04 494/week @ 2024-02-11 444/week @ 2024-02-18 584/week @ 2024-02-25 636/week @ 2024-03-03 583/week @ 2024-03-10 618/week @ 2024-03-17 247/week @ 2024-03-24 336/week @ 2024-03-31

1,836 downloads per month
Used in 6 crates (4 directly)

Apache-2.0

84KB
2K 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:

Values from IANA registries, generated by the mas-iana-codegen crate

Dependencies

~0.8–1.6MB
~36K SLoC