===== output/01-provider-manager-semantics.txt ===== Provider A answers, then provider B answers. What does ProviderManager return? A throws BadCredentialsException, B succeeds -> authenticated as from-B A throws AuthenticationServiceException, B succeeds -> authenticated as from-B A throws LockedException, B succeeds -> failed with LockedException A throws InternalAuthenticationServiceException, B succeeds -> failed with InternalAuthenticationServiceException A returns null, B succeeds -> authenticated as from-B A throws BadCredentialsException, B returns null -> failed with BadCredentialsException A returns null, B returns null -> failed with ProviderNotFoundException ===== output/02-basic-matrix.txt ===== ENDPOINT CREDENTIALS STATUS /public/status none 200 /user/dashboard none 302 /user/dashboard user/password 200 /admin/panel user/password 403 /admin/panel admin/secret 200 /profile none 302 POST /login user/password -> 302 -> / POST /login admin/secret -> 302 -> / POST /login invalid/invalid -> 302 -> /login?error ===== output/03-layered-providers.txt ===== Chain order: EncodedCustomAuthProvider (internal users) -> LegacyDirectoryAuthProvider (mainframe) user/password 302 -> / AuthenticationSuccessEvent + InteractiveAuthenticationSuccessEvent /whoami -> ["FACTOR_PASSWORD","ROLE_USER"] admin/secret 302 -> / AuthenticationSuccessEvent + InteractiveAuthenticationSuccessEvent /whoami -> ["FACTOR_PASSWORD","ROLE_ADMIN","ROLE_USER"] locked/secret 302 -> /login?error AuthenticationFailureLockedEvent ghost/whatever 302 -> /login?error AuthenticationFailureBadCredentialsEvent admin/wrong 302 -> /login?error AuthenticationFailureBadCredentialsEvent -- legacy directory switched off -- user/password 302 -> / AuthenticationSuccessEvent + InteractiveAuthenticationSuccessEvent admin/secret 302 -> /login?error AuthenticationFailureServiceExceptionEvent ===== output/04-mfa-step-up.txt ===== admin logs in with password only GET /user/dashboard -> 200 GET /admin/panel -> 403 GET /whoami -> ["FACTOR_PASSWORD","ROLE_ADMIN","ROLE_USER"] admin submits a wrong code POST /mfa/otp code=000000 -> 401 GET /admin/panel -> 403 admin submits the right code POST /mfa/otp code=246810 -> 200 GET /admin/panel -> 200 GET /whoami -> ["FACTOR_OTT","FACTOR_PASSWORD","ROLE_ADMIN","ROLE_USER"] user (no ADMIN role) passes the one-time-code step too GET /admin/panel -> 403 ===== output/05-provider-wiring.txt ===== Chain never calls .authenticationProvider(...); admin/secret posted to /login one AuthenticationProvider bean -> 302 -> / InteractiveAuthenticationSuccessEvent two AuthenticationProvider beans -> 302 -> /login?error AuthenticationFailureProviderNotFoundEvent two beans, chain attaches CustomAuthProvider -> 302 -> / InteractiveAuthenticationSuccessEvent A hand-built AuthenticationManager bean (what the 2025 article published): one provider bean + manager bean(only mgr/x) admin/secret -> 302 -> / InteractiveAuthenticationSuccessEvent one provider bean + manager bean(only mgr/x) mgr/x -> 302 -> /login?error AuthenticationFailureBadCredentialsEvent two provider beans + manager bean listing both admin/secret -> 302 -> / InteractiveAuthenticationSuccessEvent Log lines from the two-bean start-up that mention AuthenticationProvider: Found 2 AuthenticationProvider beans, with names [customAuthProvider, idleProvider]. Global Authentication Manager will not be configured with AuthenticationProviders. Consider publishing a single AuthenticationProvider bean, or wiring your Providers directly using the DSL. ===== output/06-multi-chain.txt ===== As documented: /api/** chain is JWT only, everything else uses CustomAuthProvider GET /api/ping Bearer JWT -> 200 GET /api/ping no credentials -> 401 GET /api/ping Basic admin:secret -> 401 GET /admin/panel after form login admin/secret -> 200 ===== output/07-basic-leak.txt ===== apiFilterChain with .httpBasic(...) added "just for testing" GET /api/ping Basic admin:secret -> 200 GET /api/ping Basic admin:wrong -> 401 ===== output/08-credentials-erased.txt ===== provider returned a token carrying credentials = still-the-raw-password after ProviderManager.authenticate(): credentials = null