Eric Eastwood
d38d0cd366
Add interactive tests
2026-05-20 16:36:39 -05:00
Eric Eastwood
e8f664e480
Merge branch 'main' into madlittlemods/max-session-threshold
2026-05-20 16:19:09 -05:00
Eric Eastwood
94e35f03cf
Show session/device limit errors on account page ( #5644 )
...
Part of https://github.com/element-hq/matrix-authentication-service/issues/4339 / https://github.com/element-hq/backend-internal/issues/199 tracking work to limit number of devices.
Follow-up to https://github.com/element-hq/matrix-authentication-service/pull/5639
2026-05-20 16:18:24 -05:00
Eric Eastwood
a17e53297d
Merge branch 'main' into madlittlemods/max-session-threshold
...
Conflicts:
crates/handlers/src/compat/login.rs
2026-05-20 16:16:22 -05:00
Eric Eastwood
e65237b8f9
Merge branch 'main' into madlittlemods/soft-limit-account-session-management
2026-05-20 15:06:24 -05:00
Eric Eastwood
8d39676585
Use assert_matches!(...)
...
See https://github.com/element-hq/matrix-authentication-service/pull/5675#discussion_r3275925322
2026-05-20 15:03:09 -05:00
Eric Eastwood
a9114e34d1
Add FIXME for better DOM scrutiny
...
See https://github.com/element-hq/matrix-authentication-service/pull/5675#discussion_r3275929267
2026-05-20 14:56:56 -05:00
Eric Eastwood
97b3446f69
Merge branch 'main' into madlittlemods/soft-limit-sso-login-test
2026-05-20 14:44:14 -05:00
Eric Eastwood
bd995f18ef
Merge branch 'main' into madlittlemods/check-valid
...
Conflicts:
crates/handlers/src/compat/login.rs
2026-05-20 12:28:18 -05:00
Eric Eastwood
b73e06aded
Update comment langauge and add it to other login spots
2026-05-20 11:58:36 -05:00
Eric Eastwood
7764e9e296
Formatting
2026-05-20 11:48:37 -05:00
Eric Eastwood
2aba54c4ba
Update reason for why synchronous device creation
...
See https://github.com/element-hq/matrix-authentication-service/pull/5679#discussion_r3237767718
2026-05-20 11:47:18 -05:00
Eric Eastwood
502cf66024
Merge branch 'main' into madlittlemods/sync-devices-after-hard-limit-eviction
2026-05-20 11:45:02 -05:00
Eric Eastwood
d50c05437d
Fix lints
2026-05-15 17:59:30 -05:00
Eric Eastwood
2d9e62a4a0
More plain comment
2026-05-15 17:58:14 -05:00
Eric Eastwood
729df41df0
Better ConsentForbiddenPageType docstring
2026-05-15 17:53:08 -05:00
Eric Eastwood
a130600958
Refine error strategy
2026-05-15 17:52:01 -05:00
Eric Eastwood
d274793198
Better ConsentForbidden
2026-05-15 17:39:49 -05:00
Eric Eastwood
7bd41d7297
Explain more in error
2026-05-15 17:29:21 -05:00
Eric Eastwood
40d52488bf
Test works without extra complexity of using only path/query
...
(probably because they are already path/query URI's). Unclear
if we would run into issues with full URI's that include the scheme/host
2026-05-15 17:26:34 -05:00
Eric Eastwood
e10721aaa5
Remove request_and_follow_redirects
...
The complexity of this extra function probably isn't worth the duplicates
lines to follow the redirects manually. Since we control the entire flow
here, it's not unreasonable to go this route.
2026-05-15 17:24:47 -05:00
Eric Eastwood
6574fa3b97
Refine errors
2026-05-15 17:06:07 -05:00
Eric Eastwood
ded5e61d30
More robust
2026-05-15 16:52:51 -05:00
Eric Eastwood
3839dfba5b
Avoid ParseError::RelativeUrlWithoutBase when trying to parse relative URI into URL
2026-05-15 16:27:37 -05:00
Eric Eastwood
8eb544f79c
request_and_follow_redirects
2026-05-15 16:06:06 -05:00
Eric Eastwood
dd2242d430
More refinement
2026-05-15 15:02:33 -05:00
Eric Eastwood
50b49cd38a
Back to more normal
2026-05-14 19:27:01 -05:00
Eric Eastwood
e200a5f2ee
Snapshot
2026-05-14 18:17:20 -05:00
Eric Eastwood
b68753c7a1
More specific test
2026-05-14 17:24:31 -05:00
Eric Eastwood
941f3e50d5
Fix lints
2026-05-14 16:50:55 -05:00
Eric Eastwood
4437b3b8d0
Check whether policy evaluation result is valid
2026-05-14 16:42:10 -05:00
Eric Eastwood
ef9aae2dbb
Iterate on test
2026-05-14 16:37:21 -05:00
Eric Eastwood
48348d5c43
Merge branch 'main' into madlittlemods/soft-limit-sso-login-test
2026-05-14 15:46:43 -05:00
Eric Eastwood
0cd6bc7278
Fix lints
2026-05-14 15:16:24 -05:00
Eric Eastwood
404a266b0e
Merge branch 'main' into madlittlemods/max-session-threshold
2026-05-14 14:59:20 -05:00
Eric Eastwood
a2ed694f28
Merge branch 'main' into madlittlemods/soft-limit-account-session-management
2026-05-14 14:47:59 -05:00
Eric Eastwood
3afca38251
Merge branch 'main' into madlittlemods/soft-limit-account-session-management
2026-05-13 17:43:11 -05:00
Eric Eastwood
f21e59b50d
Explain as opposed to
2026-05-13 17:27:07 -05:00
Eric Eastwood
5eadefa729
Fix lints
2026-05-13 17:15:38 -05:00
Eric Eastwood
09139721c0
Add logout reasoning
2026-05-13 17:10:02 -05:00
Eric Eastwood
25f6b21990
Schedule SyncDevicesJob after dangerous_hard_limit_eviction
2026-05-13 16:54:44 -05:00
Eric Eastwood
9290c46ea8
Add reasoning for why upsert device immediately when logging in
...
From https://github.com/element-hq/matrix-authentication-service/pull/5607#discussion_r3232971115
2026-05-13 16:39:33 -05:00
Eric Eastwood
1e84c6962a
Merge branch 'main' into madlittlemods/fix-test-state-reset
2026-05-13 15:56:14 -05:00
Eric Eastwood
2fea1fee7c
Fix TestState.reset() to retain mock homeserver im-memory state
2026-05-13 15:43:27 -05:00
Eric Eastwood
a7ebe900cc
Fix reset to retain mock homeserver im-memory state
2026-05-13 15:40:49 -05:00
Quentin Gliech
aecb172209
Add oauth.device_code_grant_enabled configuration option ( #5612 )
2026-05-13 21:40:02 +02:00
Quentin Gliech
890042e6a9
Drop the device code grant type if it's disabled instead of rejecting the registration
2026-05-13 21:29:04 +02:00
Eric Eastwood
d30fd0f964
WIP: m.login.sso test for session soft_limit
2026-05-12 18:45:08 -05:00
Eric Eastwood
e28b917290
Remove test for now
2026-05-12 18:39:26 -05:00
Eric Eastwood
1ef9a8f87b
Adjust tests
2026-05-12 17:24:59 -05:00