Moves the existing virtual-thread/context-propagation project into context-propagation/ and adds method-security/ for the Spring Security 7 method-security article: nine runnable demos, fourteen assertions, and every transcript the article quotes, regenerated by scripts/run-all.sh. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RSrsDSRKVsY588yFiMJMo9
6 lines
284 B
Plaintext
6 lines
284 B
Plaintext
=== Demo 3: StructuredTaskScope.fork() + SecurityContext ===
|
|
A) plain fork, MODE_THREADLOCAL: NO AUTHENTICATION (lost)
|
|
B) plain fork, MODE_INHERITABLETHREADLOCAL: authenticated as frank
|
|
C) manual capture/restore: authenticated as grace
|
|
D) ContextSnapshot.wrap: authenticated as heidi
|