Commit 5ca7d0a
phase 121: update server's HS256 rejection test for new dual-verify semantics
assertPhase0LegacyHs256Algorithm used to assume the SDK verifier would
reject any HS256 token as an unsupported algorithm. With dual-verify
(this PR), HS256 is accepted by default, so the old assertion now sees
'jwks_fetch_failed' (the verifier looks for a matching HS256 JWK that
the test harness doesn't publish) instead of 'invalid_token'.
Fix: set RELAYAUTH_VERIFIER_ACCEPT_HS256=false around the verify call
so the test asserts the post-sunset posture that phase 122 flips in
production. Test intent ("spec-compliant verifier rejects legacy
HS256") is preserved; the fixture just scopes to the correct flag
state.
Env var is restored in a finally block to avoid cross-test leakage.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 1fa679c commit 5ca7d0a
1 file changed
Lines changed: 29 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
277 | 291 | | |
278 | 292 | | |
279 | 293 | | |
| |||
0 commit comments