Repository navigation
Commit 14ff1de
authored
fix: recognize 401 step-up-required on passkey enrollment denial (SUF-02) (#91)
The framework's stale/factorless-session denial on POST /webauthn/register changed
in ds-spring-user-framework 5.3.4 from a bare 403 to a 401 carrying error code
"step-up-required" (StepUpEnrollmentAccessDeniedHandler, library #371), matching the
passkey delete/rename endpoints. webauthn-register.js only branched on 403, so against
5.3.4 a stale-session enrollment fell through to the generic "Failed to register
passkey. Please try again." instead of the actionable "sign out and sign in again"
message, and the chromium-step-up E2E (step-up-flow.spec.ts:320) failed.
Recognize both: 403 (framework < 5.3.4) or 401 with error code "step-up-required"
(5.3.4+) now raise PasskeyEnrollmentStepUpError. Backward-compatible, so the test
passes whether the demo is pinned to 5.3.3 or bumped to 5.3.4.
Verified locally against a 5.3.4-SNAPSHOT publishLocal build: chromium-step-up 8/8.
Claude-Session: https://claude.ai/code/session_01KL5qvKVGQLLQDjHToy34vj1 parent d7f83cc commit 14ff1de
1 file changed
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| |||
0 commit comments