Commit Graph
6062 Commits
Author SHA1 Message Date
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
Andrew Ferrazzutti 6c1afee13d Separate active state from lock state in admin API
- Allow the admin API to deactivate a user without locking it, and to
  unlock a user without reactivating it.
- Make unlock-and-reactivate flows unset the "deactivated_at" timestamp.
- Revert adding an "unlock" parameter on `ReactivateUserJob`, as the
  option is used only by the admin API which doesn't use a job.
2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti 13a21cc018 Update schema 2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti a8b8c8e31c Add admin API endpoint to reactivate user 2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti 6183cae84e Format 2025-07-16 13:42:14 -04:00
Andrew Ferrazzutti 05827d1e40 Don't return locked error for deactivated users
When a user is both locked and deactivated, give precedence to
deactivation errors over locked errors, as a locked error suggests that
unlocking the user would make it available.
2025-07-16 13:38:15 -04:00
Quentin Gliech aee585c7c2 Upgrade Rust and Clippy to 1.87 2025-07-16 19:24:20 +02:00
Quentin Gliech ed566a9fbf Use Path::display() instead of the debug representation 2025-07-16 19:23:06 +02:00
Quentin Gliech 3076276171 Rename Claim::claim to Claim::value 2025-07-16 19:23:06 +02:00
Quentin Gliech 63a47aa41b Box all the figment errors to avoid large enum differences 2025-07-16 19:23:06 +02:00
Quentin Gliech e2aad08006 Miscellaneous housekeeping (#4735) 2025-07-16 18:53:59 +02:00