Commit 1c2b910
committed
build: upgrade ds-spring-user-framework to 4.4.0
Point the demo at the released 4.4.0 security batch on Maven Central
(was 4.3.1) and adapt the application code/config to its API and
behavior changes.
Dependency:
- ds-spring-user-framework 4.3.1 -> 4.4.0.
- Drop the direct org.passay:passay pin. passay is supplied transitively
by the framework at the version it requires; pinning it here forced a
conflicting downgrade.
Application adaptations to 4.4.0:
- CustomUserEmailService: UserEmailService's constructor now takes a
TokenHasher (token-hashing security fix); pass it through.
- Remove MfaSecurityConfig: 4.4.0 installs @EnableMultiFactorAuthentication
/ the MFA filter-merging post-processor itself, so the demo no longer
needs its own copy.
- application.yml / application-mfa.yml: the framework now auto-unprotects
the configured MFA factor entry-point URIs (#313), so the WebAuthn
challenge page no longer has to be listed in unprotectedURIs by hand.
- MfaConfigConsistencyTest: assert only what is still the demo's own
responsibility (MFA opt-in, passkey enrollment endpoints reachable).
- EmailVerificationEdgeCaseSimpleTest: verification tokens are now
atomically consumed on the valid path (single-use), so assert the token
is gone and the user enabled after validation.
Drop framework-internal unit tests that duplicated the library's own
suite and no longer match its internals:
- UserServiceTest, UserVerificationServiceTest, LoginAttemptServiceTest.1 parent 2595da6 commit 1c2b910
10 files changed
Lines changed: 57 additions & 396 deletions
File tree
- src
- main
- java/com/digitalsanctuary/spring/demo
- config
- service
- resources
- test/java/com/digitalsanctuary/spring
- demo/mfa
- user
- security
- service
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
Lines changed: 10 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 48 | | |
61 | 49 | | |
62 | 50 | | |
| |||
67 | 55 | | |
68 | 56 | | |
69 | 57 | | |
70 | | - | |
71 | | - | |
| 58 | + | |
| 59 | + | |
72 | 60 | | |
73 | 61 | | |
74 | 62 | | |
75 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
76 | 67 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 68 | | |
81 | 69 | | |
82 | 70 | | |
Lines changed: 34 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
| |||
233 | 239 | | |
234 | 240 | | |
235 | 241 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
| 242 | + | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
246 | 260 | | |
247 | 261 | | |
248 | 262 | | |
| |||
273 | 287 | | |
274 | 288 | | |
275 | 289 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
| 290 | + | |
282 | 291 | | |
283 | 292 | | |
284 | 293 | | |
285 | 294 | | |
286 | | - | |
287 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
288 | 303 | | |
289 | | - | |
290 | | - | |
| 304 | + | |
| 305 | + | |
291 | 306 | | |
292 | 307 | | |
Lines changed: 0 additions & 107 deletions
This file was deleted.
0 commit comments