Commit Graph
5463 Commits
Author SHA1 Message Date
Quentin Gliech 1b634b29b5 build(deps): bump psl from 2.1.125 to 2.1.126 (#4803) 2025-07-21 17:30:50 +02:00
dependabot[bot] b9db1999d6 build(deps): bump serde_json from 1.0.140 to 1.0.141
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.140 to 1.0.141.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.140...v1.0.141)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-version: 1.0.141
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-21 15:30:38 +00:00
dependabot[bot] 77fa6df761 build(deps): bump psl from 2.1.125 to 2.1.126
Bumps [psl](https://github.com/addr-rs/psl) from 2.1.125 to 2.1.126.
- [Release notes](https://github.com/addr-rs/psl/releases)
- [Commits](https://github.com/addr-rs/psl/compare/v2.1.125...v2.1.126)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-21 15:24:10 +00:00
Quentin Gliech 5cbe503811 Allow account linking for existing users when the localpart matches in upstream OAuth 2.0 logins (#4193) 2025-07-21 17:17:57 +02:00
Quentin Gliech cfa9a23d86 Merge branch 'main' into feat/allow_override_user 2025-07-21 17:03:35 +02:00
Quentin Gliech 5eb8e780cf Use the new dedicated Synapse API (#4801) 2025-07-21 13:23:39 +02:00
Quentin Gliech ee9f843801 Merge branch 'main' into quenting/new-synapse-api 2025-07-21 13:16:36 +02:00
Quentin Gliech 832244675d Threaten to switch to using the modern API in a few releases. 2025-07-21 13:15:48 +02:00
Quentin Gliech 3266bfbd65 build(deps): bump opa-wasm from 0.1.5 to 0.1.6 (#4805) 2025-07-21 13:15:12 +02:00
Quentin Gliech 4c5b7d05b4 Avoid a few unnecessary clones when talking to Synapse 2025-07-21 13:14:38 +02:00
Quentin Gliech fbcfa25cba Remove the spurious password field from the request body 2025-07-21 13:08:36 +02:00
Quentin Gliech e8beab2c43 Update wasmtime 2025-07-21 13:06:57 +02:00
dependabot[bot] 58a2ac5016 build(deps): bump opa-wasm from 0.1.5 to 0.1.6
Bumps [opa-wasm](https://github.com/matrix-org/rust-opa-wasm) from 0.1.5 to 0.1.6.
- [Release notes](https://github.com/matrix-org/rust-opa-wasm/releases)
- [Changelog](https://github.com/matrix-org/rust-opa-wasm/blob/main/CHANGELOG.md)
- [Commits](https://github.com/matrix-org/rust-opa-wasm/compare/v0.1.5...v0.1.6)

---
updated-dependencies:
- dependency-name: opa-wasm
  dependency-version: 0.1.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-21 10:24:52 +00:00
olivier d30dd1e766 simplify unit tests 2025-07-21 11:32:54 +02:00
Quentin Gliech 5a32f00901 Rename create_device -> upsert_device 2025-07-21 10:54:40 +02:00
olivier 87ac7a1989 remove unused function 2025-07-21 10:19:57 +02:00
olivier 776da31c52 fix err return 2025-07-21 10:13:04 +02:00
Olivier DandQuentin Gliech 3e9d572e2f Update crates/handlers/src/upstream_oauth2/link.rs
Co-authored-by: Quentin Gliech <quenting@element.io>
2025-07-21 09:52:24 +02:00
Olivier DandQuentin Gliech 2866f7994d Update crates/handlers/src/upstream_oauth2/link.rs
Co-authored-by: Quentin Gliech <quenting@element.io>
2025-07-21 09:52:24 +02:00
olivier c7b57f7d4c fix rust style 2025-07-21 09:52:24 +02:00
olivier 0a0c062574 add semi column 2025-07-21 09:52:24 +02:00
Olivier DandQuentin Gliech fcfbc5176a fix code style
Co-authored-by: Quentin Gliech <quenting@element.io>
2025-07-21 09:52:24 +02:00
Olivier DandQuentin Gliech 23c97e5931 Update crates/handlers/src/upstream_oauth2/link.rs
Co-authored-by: Quentin Gliech <quenting@element.io>
2025-07-21 09:52:24 +02:00
Olivier DandQuentin Gliech 95ab780fb2 update license
Co-authored-by: Quentin Gliech <quenting@element.io>
2025-07-21 09:52:24 +02:00
Olivier DandQuentin Gliech cdc75ffbf3 use match
Co-authored-by: Quentin Gliech <quenting@element.io>
2025-07-21 09:52:24 +02:00
mcalinghee 3644d4c0bf rename is_forced to is_forced_or_required 2025-07-21 09:52:24 +02:00
mcalinghee 3774850c94 use of UpstreamOAuthProviderLocalpartPreference 2025-07-21 09:52:24 +02:00
mcalinghee 98912f4ada allow importing existing users when the localpart matches in upstream OAuth 2.0 logins 2025-07-21 09:52:24 +02:00
Quentin Gliech f29054f2f7 build(deps): bump psl from 2.1.124 to 2.1.125 (#4795) 2025-07-18 19:15:39 +02:00
Quentin Gliech 5e19c48cee build(deps-dev): bump the storybook group in /frontend with 3 updates (#4796) 2025-07-18 19:15:31 +02:00
Quentin Gliech 81b17a9a55 build(deps): bump the tanstack-router group in /frontend with 3 updates (#4797) 2025-07-18 19:14:33 +02:00
Quentin Gliech ce17ac2a36 build(deps): bump swagger-ui-dist from 5.26.2 to 5.27.0 in /frontend (#4799) 2025-07-18 19:14:22 +02:00
Quentin Gliech 94484a7bba build(deps): bump sigstore/cosign-installer from 3.9.1 to 3.9.2 (#4800) 2025-07-18 19:14:03 +02:00
Quentin Gliech c649603830 Use the new dedicated Synapse API 2025-07-18 16:39:24 +02:00
Quentin Gliech 8af1b7a3fa Take the localpart instead of the MXID in HomeserverConnection methods 2025-07-18 16:39:24 +02:00
dependabot[bot] 0f279204d7 build(deps): bump sigstore/cosign-installer from 3.9.1 to 3.9.2
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.9.1 to 3.9.2.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.9.1...v3.9.2)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-version: 3.9.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-18 14:06:14 +00:00
dependabot[bot] 2f0914d8b2 build(deps): bump swagger-ui-dist from 5.26.2 to 5.27.0 in /frontend
Bumps [swagger-ui-dist](https://github.com/swagger-api/swagger-ui) from 5.26.2 to 5.27.0.
- [Release notes](https://github.com/swagger-api/swagger-ui/releases)
- [Changelog](https://github.com/swagger-api/swagger-ui/blob/master/.releaserc)
- [Commits](https://github.com/swagger-api/swagger-ui/compare/v5.26.2...v5.27.0)

---
updated-dependencies:
- dependency-name: swagger-ui-dist
  dependency-version: 5.27.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-17 13:49:07 +00:00
dependabot[bot] ed0da1cb69 build(deps): bump the tanstack-router group in /frontend with 3 updates
---
updated-dependencies:
- dependency-name: "@tanstack/react-router"
  dependency-version: 1.128.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: tanstack-router
- dependency-name: "@tanstack/react-router-devtools"
  dependency-version: 1.128.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: tanstack-router
- dependency-name: "@tanstack/router-plugin"
  dependency-version: 1.128.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: tanstack-router
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-17 13:48:39 +00:00
dependabot[bot] 754a072dd0 build(deps-dev): bump the storybook group in /frontend with 3 updates
---
updated-dependencies:
- dependency-name: "@storybook/addon-docs"
  dependency-version: 9.0.17
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/react-vite"
  dependency-version: 9.0.17
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: storybook
  dependency-version: 9.0.17
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-17 13:48:05 +00:00
dependabot[bot] 346b570665 build(deps): bump psl from 2.1.124 to 2.1.125
Bumps [psl](https://github.com/addr-rs/psl) from 2.1.124 to 2.1.125.
- [Release notes](https://github.com/addr-rs/psl/releases)
- [Commits](https://github.com/addr-rs/psl/compare/v2.1.124...v2.1.125)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-17 13:47:43 +00:00
Quentin Gliech a0cd5461fe Upgrade Clippy to Rust 1.87 (#4794) 2025-07-17 11:59:59 +02:00
Quentin Gliech 23797eef2c Merge branch 'main' into quenting/rust-1.87 2025-07-17 09:22:28 +02:00
Quentin Gliech b8480b1c97 Support M_USER_LOCKED error for compat sessions (#4789) 2025-07-17 09:17:14 +02:00
Quentin Gliech b83c747f37 Allow skipping GDPR-erasure when deactivating a user through the admin API (#4744) 2025-07-17 09:15:25 +02:00
Quentin Gliech 176c05938f New admin API endpoint to reactivate users & align what lock/unlock/deactivate does in the admin API (#4768) 2025-07-17 09:11:32 +02:00
Quentin Gliech 52c3a36bac Make the admin API provision users synchronously (#4788) 2025-07-17 09:07:41 +02:00
Andrew Ferrazzutti 8ac2770cf7 Revert GraphQL's unlock to also reactivate
Unlike the CLI and admin API, leave the behaviour of the GraphQL's
unlock handler unchanged from before, so as to not break internal
tooling that depends on it.

Also update its documentation description to make note of the fact that
it reactivates in addition to unlocks.
2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti d807975137 Decouple (un)locking from (re/de)activation
Unify the admin API, CLI, and GraphQL API in not having the unlock
command also reactivate, or the deactivate command also lock.

Still let the unlock command of the CLI and GraphQL API to also
reactivate the target user, albeit as a non-default option.
2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti df8032695a Satisfy Clippy 2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti eca22d335b Format 2025-07-16 14:17:01 -04:00