Quentin Gliech f2ef058283 Experimental feature to automatically expire inactive sessions (#4022)
Fixes #1875 

This adds an experimental feature which allows expiring sessions that
are inactive for a certain amount of time.

It runs as a scheduled task every 15 minutes, checking for the 'last
activity' on each session type.
It processes sessions by batches of 100 at a time, to avoid overloading
Synapse when syncing back the database.

It expires:

 - all user (browser) sessions
 - all compatibility sessions
 - oauth sessions which are:
   - for a user
   - using a 'dynamic' client (so the sessions started from clients defined
      in the config are excluded)
2025-02-13 10:33:00 +01:00
2025-02-04 15:04:55 +00:00
2022-07-04 15:49:58 +02:00
2021-06-10 13:48:28 +02:00
2021-07-09 16:03:39 +02:00
2025-01-06 12:24:28 +01:00
2024-09-10 14:28:55 +02:00

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:

S
Description
No description provided
Readme AGPL-3.0 45 MiB
Languages
Rust 83.7%
TypeScript 8.9%
HTML 4.3%
Open Policy Agent 1.2%
CSS 1%
Other 0.8%