Commit Graph

2218 Commits

Author SHA1 Message Date
Quentin Gliech 40cb052d1f Allow applying unicode normalisation to passwords before hashing 2025-05-30 15:42:32 +02:00
dependabot[bot] c7ced48bb8 build(deps): bump psl from 2.1.106 to 2.1.111
Bumps [psl](https://github.com/addr-rs/psl) from 2.1.106 to 2.1.111.
- [Release notes](https://github.com/addr-rs/psl/releases)
- [Commits](https://github.com/addr-rs/psl/compare/v2.1.106...v2.1.111)

---
updated-dependencies:
- dependency-name: psl
  dependency-version: 2.1.111
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-23 13:31:04 +00:00
Quentin Gliech 98f2776335 Fix encoding of MXIDs when creating devices in Synapse (#4542) 2025-05-09 09:57:18 +02:00
Quentin Gliech 38fd75ee25 build(deps): bump crc from 3.2.1 to 3.3.0 (#4538) 2025-05-09 09:14:15 +02:00
Quentin Gliech e9589ae17e Don't hold database connections open when talking to the homeserver (#4527) 2025-05-09 09:13:42 +02:00
Quentin Gliech 29fb7d2a1b Fix encoding of MXIDs when creating devices in Synapse 2025-05-09 09:07:18 +02:00
dependabot[bot] bc96bae0b2 build(deps): bump crc from 3.2.1 to 3.3.0
Bumps [crc](https://github.com/mrhooray/crc-rs) from 3.2.1 to 3.3.0.
- [Release notes](https://github.com/mrhooray/crc-rs/releases)
- [Commits](https://github.com/mrhooray/crc-rs/commits)

---
updated-dependencies:
- dependency-name: crc
  dependency-version: 3.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-08 13:55:32 +00:00
Quentin Gliech 2297f8e36f build(deps): bump tokio from 1.44.2 to 1.45.0 (#4520) 2025-05-07 19:37:13 +02:00
Quentin Gliech c1054956a6 Hacky support for the /logout/all compatibility endpoint (#4504) 2025-05-07 19:32:09 +02:00
Quentin Gliech cfb001ad43 Adjust tokio metrics for tokio 1.45 2025-05-07 19:28:50 +02:00
Quentin Gliech 143224b447 Don't automatically insert the openid scope on upstream providers (#4517) 2025-05-07 19:00:08 +02:00
Quentin Gliech 470cc26747 cargo fmt 2025-05-07 18:51:51 +02:00
Quentin Gliech def20930bf Explain why nonce is optional now
Co-authored-by: reivilibre <oliverw@element.io>
2025-05-07 18:50:38 +02:00
Quentin Gliech 8d7be72341 Don't hold db conns when creating a device on the compat login API 2025-05-07 18:33:52 +02:00
Quentin Gliech 345f6f2c3a Use the new RepositoryFactory everywhere 2025-05-07 17:27:59 +02:00
Quentin Gliech 626c9be760 Move the pool acquisition metric logic to the PgRepositoryFactory 2025-05-07 17:09:20 +02:00
Quentin Gliech 03bad37070 Introduce a RepositoryFactory 2025-05-07 17:00:49 +02:00
dependabot[bot] 227a79670c build(deps): bump rustls-pki-types from 1.11.0 to 1.12.0
Bumps [rustls-pki-types](https://github.com/rustls/pki-types) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/rustls/pki-types/releases)
- [Commits](https://github.com/rustls/pki-types/compare/v/1.11.0...v/1.12.0)

---
updated-dependencies:
- dependency-name: rustls-pki-types
  dependency-version: 1.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-07 13:46:05 +00:00
Quentin Gliech 632904a7ae Make the default scope on upstream providers config openid 2025-05-07 15:34:30 +02:00
Quentin Gliech 5d58d9df7c Don't generate and send a nonce for non-OIDC-compliant auth requests 2025-05-07 15:34:27 +02:00
Quentin Gliech 6dfd60be35 Don't always insert the openid scope in upstream OAuth 2.0 requests 2025-05-07 15:25:50 +02:00
Quentin Gliech ad66524f33 Fix the Swagger UI not working when MAS is mounted on a prefix (#4515) 2025-05-07 14:57:27 +02:00
Quentin Gliech b9a40ef13d Sample traces based on the parent (#4514) 2025-05-07 14:53:52 +02:00
Quentin Gliech ec945aa58b Suppress warning with Jaeger propagator when the header is unset (#4513) 2025-05-07 14:53:40 +02:00
Quentin Gliech 514cd8e389 Allow the X-Requested-With header in CORS on the OAuth endpoints 2025-05-07 14:50:03 +02:00
Quentin Gliech c326d76e2a Make the security schemes relative in the static OpenAPI spec 2025-05-07 14:20:21 +02:00
Quentin Gliech dc2ff768e3 Use absolute URLs in the OAuth 2.0 security scheme in the API spec 2025-05-07 14:05:44 +02:00
Quentin Gliech 4396ba1bfc Forward the login_hint upstream. (#4512) 2025-05-07 12:23:49 +02:00
Doug 2d4f24eed4 Update copyright header
sqlx migrate/prepare are both still happy.
2025-05-07 10:26:30 +01:00
Doug 0d1caae379 Update the login schema docs. 2025-05-07 10:21:40 +01:00
Quentin Gliech e682c57c55 build(deps): bump psl from 2.1.105 to 2.1.106 (#4501) 2025-05-07 11:15:04 +02:00
Quentin Gliech ac5f4b96b5 Log the trace ID in the log line only if the span is sampled 2025-05-07 10:56:19 +02:00
Quentin Gliech 14b0de7d85 Sample traces based on the parent span if available 2025-05-07 10:53:33 +02:00
Quentin Gliech 6449123814 Suppress warning with Jaeger propagator when the header is unset 2025-05-07 10:32:47 +02:00
Doug 26d84c5a36 Fix database snapshot. 2025-05-07 09:17:28 +01:00
Doug e4a4261d56 Add missing parameter. 2025-05-06 17:54:57 +01:00
Doug 096ce6037d Add a configuration for forwarding the login hint to the upstream provider. 2025-05-06 17:50:33 +01:00
Doug 691c055cb4 Fix clippy error. 2025-05-06 15:34:37 +01:00
Doug c5e0f1642f Fix lint error. 2025-05-06 15:26:02 +01:00
Doug b58344faf1 Forward the login_hint upstream. 2025-05-06 15:18:11 +01:00
Quentin Gliech 19ea6f3a93 Hacky support for the /logout/all compatibility endpoint 2025-05-05 16:12:50 +02:00
dependabot[bot] 7b56d4476d build(deps): bump psl from 2.1.105 to 2.1.106
Bumps [psl](https://github.com/addr-rs/psl) from 2.1.105 to 2.1.106.
- [Release notes](https://github.com/addr-rs/psl/releases)
- [Commits](https://github.com/addr-rs/psl/compare/v2.1.105...v2.1.106)

---
updated-dependencies:
- dependency-name: psl
  dependency-version: 2.1.106
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-05 13:49:39 +00:00
Quentin Gliech ee9b3e21b3 Merge branch 'main' into ref-merge/b2a4ceffd3d98f1dbb86754a0e5766a912641906 2025-05-05 15:38:31 +02:00
Quentin Gliech 488e028f14 Check rendering of templates with all supported locales. 2025-05-05 14:38:24 +02:00
Quentin Gliech 27fa92a0d8 Make sure to check all the templates 2025-05-05 13:51:11 +02:00
Quentin Gliech 3eb8908cba Make the check functions on templates crate private
This will report if we forget to use one of the check function.
2025-05-05 13:49:09 +02:00
Quentin Gliech 73cfc2c6fd syn2mas: allow setting the db name via the database field
This is supported (but deprecated) by psycopg2, which Synapse uses
2025-05-05 09:58:46 +02:00
Quentin Gliech 8bfe2d2092 Allow setting custom names on sessions (#4459) 2025-04-30 15:32:25 +02:00
dependabot[bot] 53addbfd67 build(deps): bump psl from 2.1.102 to 2.1.105
Bumps [psl](https://github.com/addr-rs/psl) from 2.1.102 to 2.1.105.
- [Release notes](https://github.com/addr-rs/psl/releases)
- [Commits](https://github.com/addr-rs/psl/compare/v2.1.102...v2.1.105)

---
updated-dependencies:
- dependency-name: psl
  dependency-version: 2.1.105
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-30 11:54:54 +00:00
Quentin Gliech 9cfecaf5db Insert client_name when upserting statically registered clients (#4417) 2025-04-30 11:50:49 +02:00