Commit Graph
179 Commits
Author SHA1 Message Date
Quentin Gliech c3b5fa3b0c Remove the GraphQL playground
The interactive playground page and its route/config option are gone; the GraphQL API itself (POST /graphql) is unaffected. External GraphQL usage is deprecated anyway in favour of the REST admin API.
2026-08-07 12:26:42 +02:00
Quentin GliechandGitHub 7abe147ba0 Expose a logged_out variable to upstream authorization parameter templates (#5859) 2026-07-29 17:57:55 +02:00
Quentin GliechandGitHub 9d521acd02 Replace Unix socket on startup & allow setting permissions (#5858) 2026-07-28 13:48:39 +02:00
networkException bdfeee2ceb Add password_file config variant for email and database 2026-07-26 17:57:40 +02:00
Kai A. Hiller 02a216d071 Update schema 2026-07-24 13:27:11 +02:00
Quentin Gliech cd78f82f9c Replace Unix socket on startup & allow setting permissions
Fixes #5572
Fixes #2424

This makes it so that MAS binds on a temporary path on startup, sets
permissions and then moves it to the configured path. This means that we don't
error out anymore if there is a stale socket file, and that it is safe to
rollout a new process without killing the old one first, without breaking
connections.
2026-07-13 13:46:47 +02:00
Quentin Gliech e7c57e013a Expose a logged_out variable to upstream authorization parameter templates
When a browser signs out (or discovers its session was ended), the
session cookie now remembers when that happened; the flag is cleared by
the next successful login. The `additional_authorization_parameters`
templates can read it as `logged_out`, so operators can force a fresh
prompt at the upstream provider after sign-out, e.g.:

    additional_authorization_parameters:
      prompt: "{% if logged_out %}login{% endif %}"

This addresses the "sign out signs me back in" loop with upstream SSO
providers that still hold a live session.

Fixes #1569
2026-07-10 15:55:14 +02:00
Quentin GliechandGitHub 92318fc368 Upgrade aide, schemars and axum (#5752) 2026-07-02 17:43:41 +02:00
Quentin Gliech e40f5f97ec Regenerate config/API/policy schemas for schemars 1.0 + aide 0.16
Mechanical output changes from the dependency bump:
- aide 0.16 strips redundant null branches from optional query-param schemas
  (optionality stays expressed via required:false on the parameter).
- schemars 1.0 changes doc-comment dedenting, emits the ClientsConfig newtype as
  a named definition, and simplifies generic schema names
  (e.g. JsonWebKeySet_for_JsonWebKeyPublicParameters -> JsonWebKeySet).
2026-07-01 17:09:26 +02:00
Quentin Gliech f948dec457 config: remove the unused branding.logo_uri option
branding.logo_uri was accepted and validated by the config layer but never
plumbed through to SiteConfig or any template, so it had no effect. Remove the
field and regenerate the committed config schema to remove the confusion.
2026-06-25 19:04:19 +02:00
Quentin GliechandGitHub eb0ef6380c Merge branch 'main' into quenting/upstream-pass-parameters 2026-06-17 14:54:37 +02:00
Quentin GliechandGitHub 632d64d199 Per-provider registration token requirement (#5605) 2026-06-10 10:05:46 +02:00
Quentin Gliech 3025708520 Add a configuration option to disable device code auto-fill 2026-05-28 13:30:25 +02:00
Eric Eastwood e57e5e41ce Fix compatibility typo 2026-05-20 17:36:49 -05:00
Eric Eastwood e8f664e480 Merge branch 'main' into madlittlemods/max-session-threshold 2026-05-20 16:19:09 -05:00
Quentin GliechandGitHub 11d68cc8c9 Merge branch 'main' into quenting/upstream-pass-parameters 2026-05-20 10:14:00 +02:00
Eric Eastwood e61653cd2d Automatic updates 2026-05-14 15:27:36 -05:00
Eric Eastwood 3afca38251 Merge branch 'main' into madlittlemods/soft-limit-account-session-management 2026-05-13 17:43:11 -05:00
Quentin GliechandGitHub aecb172209 Add oauth.device_code_grant_enabled configuration option (#5612) 2026-05-13 21:40:02 +02:00
Quentin Gliech 6b8decf609 Document MiniJinja templating for additional_authorization_parameters
Updates the field doc-comment to describe the new templating semantics
and adds a deprecation note on `forward_login_hint` pointing to the
recommended replacement. Regenerates the JSON schema.

The runtime behavior (template rendering, forward_login_hint
soft-deprecation) is wired up in follow-up commits.
2026-05-13 17:44:15 +02:00
adis veletanlicandGitHub 7ab9e0f518 Merge branch 'main' into upstream-oauth-registration-token 2026-05-13 15:12:18 +02:00
defaultdino ba72443627 fix style, run update.sh and fix test for SiteConfig 2026-05-13 13:27:23 +02:00
Eric Eastwood 94a1394d65 Merge branch 'main' into madlittlemods/soft-limit-account-session-management
Conflicts:
	docs/config.schema.json
2026-05-12 12:17:25 -05:00
Eric Eastwood 1a0cd80556 Merge branch 'madlittlemods/hard_limit_eviction' into madlittlemods/soft-limit-account-session-management
Conflicts:
	crates/config/src/sections/experimental.rs
2026-04-28 14:00:11 -05:00
Eric Eastwood 54e8f83ec3 Merge branch 'madlittlemods/hard_limit_eviction' into madlittlemods/session-soft-limit-for-interactive-contexts 2026-04-28 13:58:51 -05:00
Eric Eastwood 8ab60954cf Rename option dangerous_hard_limit_eviction 2026-04-24 19:12:58 -05:00
Eric Eastwood 6b59e35583 Automatic formatting/linting and more at least typos 2026-04-21 18:09:19 -05:00
Eric Eastwood 8cd3b451be catastrophically typo
See https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3119473807
2026-04-21 15:23:54 -05:00
Eric Eastwood d1edf64dda Add header showing total number of devices 2026-04-17 17:49:20 -05:00
Eric Eastwood beac162d8b Run automatic updates and lints
From https://github.com/element-hq/matrix-authentication-service/blob/main/docs/development/contributing.md#7-test-test-test
2026-04-17 15:59:46 -05:00
Eric Eastwood 260ad7abd1 m.login.token is part of m.login.sso
No need to mention it
2026-04-14 19:23:57 -05:00
Eric Eastwood 73085e0c95 Update docs as I understand interactive vs non-interactive better 2026-04-14 15:07:00 -05:00
Eric Eastwood fe2ce41009 Run sh misc/update.sh 2026-04-07 15:49:02 -05:00
Hugh Nimmo-Smith 53e6d05f40 Add oauth.device_code_grant_enabled configuration option 2026-04-07 11:13:56 +01:00
Eric Eastwood 8964793f31 Draft: Evict old devices 2026-04-06 14:51:18 -05:00
Eric Eastwood 5532c0cda9 Better rustdoc links 2026-04-03 17:42:09 -05:00
Eric Eastwood e4c1be96fc Disabled by default 2026-04-03 16:03:49 -05:00
Eric Eastwood 0927f68d76 More refined figment error 2026-04-03 16:01:17 -05:00
Eric Eastwood 65ae2b6a35 Update session limit doc strings and add hard_limit_eviction 2026-04-03 15:01:19 -05:00
defaultdino 7342218175 fix provider.rs, format, and run update.sh 2026-04-03 19:22:57 +02:00
Quentin Gliech c09898c9f5 Merge remote-tracking branch 'origin/main' into quenting/upstream-oauth/skip-interactive 2025-12-03 10:48:31 +01:00
Quentin GliechandGitHub ee4d1304ab Add more options to deal with localpart conflicts on upstream OAuth 2.0 logins (#5295) 2025-12-03 10:39:05 +01:00
Quentin Gliech df14076dd0 Merge branch 'quenting/upstream-oauth/better-conflict-options' into quenting/upstream-oauth/skip-interactive 2025-11-28 18:08:09 +01:00
Quentin Gliech 47d411f641 Option to skip confirmation when registering through an upstream OAuth provider 2025-11-28 15:51:43 +01:00
Quentin Gliech ffb86f6558 Add more options to deal with localpart conflicts on upstream OAuth 2.0 logins 2025-11-28 10:53:28 +01:00
Olivier 'reivilibre f670577feb Expose the compat login policy from the policy engine 2025-11-25 18:41:14 +00:00
Olivier 'reivilibreandGitHub 0c8017fc80 Add experimental and preliminary policy-driven session limiting when logging in OAuth 2 sessions. (#5221) 2025-11-25 15:24:02 +00:00
Kai A. Hiller a93fa72477 Merge branch 'main' into keys_dir 2025-11-18 18:12:14 +01:00
Olivier 'reivilibre 1690570015 (update files after merge) 2025-11-13 15:55:25 +00:00
Olivier 'reivilibre 16f443eba0 Merge branch 'main' into rei/policy_driven_session_limit 2025-11-13 15:54:48 +00:00