olivier
e3511bef2e
simplify unit tests
2025-07-21 11:32:54 +02:00
olivier
ad1e35d651
remove unused function
2025-07-21 10:19:57 +02:00
olivier
d9d5130051
fix err return
2025-07-21 10:13:04 +02:00
Olivier D
aa62b92638
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 D
9d2cceb497
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
64b3b1b2a5
fix rust style
2025-07-21 09:52:24 +02:00
olivier
54cb82af3e
add semi column
2025-07-21 09:52:24 +02:00
Olivier D
e2a6091424
fix code style
...
Co-authored-by: Quentin Gliech <quenting@element.io >
2025-07-21 09:52:24 +02:00
Olivier D
2172a961cc
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 D
e5fe1bfc5c
update license
...
Co-authored-by: Quentin Gliech <quenting@element.io >
2025-07-21 09:52:24 +02:00
Olivier D
36d4f39424
use match
...
Co-authored-by: Quentin Gliech <quenting@element.io >
2025-07-21 09:52:24 +02:00
mcalinghee
a0e320b994
rename is_forced to is_forced_or_required
2025-07-21 09:52:24 +02:00
mcalinghee
f78e2c38f5
use of UpstreamOAuthProviderLocalpartPreference
2025-07-21 09:52:24 +02:00
mcalinghee
1886e73e40
allow importing existing users when the localpart matches in upstream OAuth 2.0 logins
2025-07-21 09:52:24 +02:00
Quentin Gliech
774c8786ff
build(deps): bump psl from 2.1.124 to 2.1.125 ( #4795 )
2025-07-18 19:15:39 +02:00
Quentin Gliech
46a0a357bb
build(deps-dev): bump the storybook group in /frontend with 3 updates ( #4796 )
2025-07-18 19:15:31 +02:00
Quentin Gliech
2bd8cf2266
build(deps): bump the tanstack-router group in /frontend with 3 updates ( #4797 )
2025-07-18 19:14:33 +02:00
Quentin Gliech
5aa78b7901
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
d24d9864a4
build(deps): bump sigstore/cosign-installer from 3.9.1 to 3.9.2 ( #4800 )
2025-07-18 19:14:03 +02:00
dependabot[bot]
a2a9e15b00
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]
d38f3a02b9
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]
b06e482f1a
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]
bac29f4d2f
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]
51997d9ac3
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
fb3137ff38
Upgrade Clippy to Rust 1.87 ( #4794 )
2025-07-17 11:59:59 +02:00
Quentin Gliech
81147cc43a
Merge branch 'main' into quenting/rust-1.87
2025-07-17 09:22:28 +02:00
Quentin Gliech
4c06421716
Support M_USER_LOCKED error for compat sessions ( #4789 )
2025-07-17 09:17:14 +02:00
Quentin Gliech
0878505429
Allow skipping GDPR-erasure when deactivating a user through the admin API ( #4744 )
2025-07-17 09:15:25 +02:00
Quentin Gliech
2bd29b8f2a
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
b8897baeec
Make the admin API provision users synchronously ( #4788 )
2025-07-17 09:07:41 +02:00
Andrew Ferrazzutti
8bacf44c68
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
49540693ab
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
27accd963a
Satisfy Clippy
2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti
24dbd792a4
Format
2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti
415e3a2555
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
63bb786b5d
Update schema
2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti
44ffec5111
Add admin API endpoint to reactivate user
2025-07-16 14:17:01 -04:00
Andrew Ferrazzutti
7a37a78eca
Format
2025-07-16 13:42:14 -04:00
Andrew Ferrazzutti
8a56bbd8f1
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
addc9d986b
Upgrade Rust and Clippy to 1.87
2025-07-16 19:24:20 +02:00
Quentin Gliech
3949ef4852
Use Path::display() instead of the debug representation
2025-07-16 19:23:06 +02:00
Quentin Gliech
4177923655
Rename Claim::claim to Claim::value
2025-07-16 19:23:06 +02:00
Quentin Gliech
62dcab9f75
Box all the figment errors to avoid large enum differences
2025-07-16 19:23:06 +02:00
Quentin Gliech
a51a697013
Miscellaneous housekeeping ( #4735 )
2025-07-16 18:53:59 +02:00
Quentin Gliech
7d8e9fcf68
build(deps): bump the tanstack-query group in /frontend with 2 updates ( #4791 )
2025-07-16 18:48:09 +02:00
Quentin Gliech
6ed8ba6407
build(deps-dev): bump @types/node from 24.0.12 to 24.0.13 in /frontend in the types group ( #4783 )
2025-07-16 18:48:00 +02:00
Quentin Gliech
21e7f4eafd
build(deps): bump @vector-im/compound-design-tokens from 5.0.1 to 5.0.2 in /frontend ( #4784 )
2025-07-16 18:47:55 +02:00
dependabot[bot]
0c76cd02e0
build(deps): bump the tanstack-query group in /frontend with 2 updates
...
Bumps the tanstack-query group in /frontend with 2 updates: [@tanstack/react-query](https://github.com/TanStack/query/tree/HEAD/packages/react-query ) and [@tanstack/react-query-devtools](https://github.com/TanStack/query/tree/HEAD/packages/react-query-devtools ).
Updates `@tanstack/react-query` from 5.82.0 to 5.83.0
- [Release notes](https://github.com/TanStack/query/releases )
- [Commits](https://github.com/TanStack/query/commits/v5.83.0/packages/react-query )
Updates `@tanstack/react-query-devtools` from 5.82.0 to 5.83.0
- [Release notes](https://github.com/TanStack/query/releases )
- [Commits](https://github.com/TanStack/query/commits/v5.83.0/packages/react-query-devtools )
---
updated-dependencies:
- dependency-name: "@tanstack/react-query"
dependency-version: 5.83.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: tanstack-query
- dependency-name: "@tanstack/react-query-devtools"
dependency-version: 5.83.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: tanstack-query
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-16 16:13:53 +00:00
dependabot[bot]
45a18cdbcb
build(deps): bump @vector-im/compound-design-tokens in /frontend
...
Bumps [@vector-im/compound-design-tokens](https://github.com/vector-im/compound-design-tokens ) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/vector-im/compound-design-tokens/releases )
- [Changelog](https://github.com/element-hq/compound-design-tokens/blob/main/docs/release.md )
- [Commits](https://github.com/vector-im/compound-design-tokens/compare/v5.0.1...v5.0.2 )
---
updated-dependencies:
- dependency-name: "@vector-im/compound-design-tokens"
dependency-version: 5.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-16 16:13:44 +00:00
Quentin Gliech
4d79eb29e4
build(deps): bump the tanstack-router group in /frontend with 3 updates ( #4790 )
2025-07-16 18:12:23 +02:00