Performance: HTTP Basic authentication
MEDIUM IMPACT
This affects the initial page load speed and interaction responsiveness by adding an extra HTTP header and server-side authentication step.
httpSecurity.authorizeHttpRequests().anyRequest().authenticated().and().httpBasic().authenticationEntryPoint(new CustomEntryPoint()).and().requiresChannel().anyRequest().requiresSecure();
httpSecurity.authorizeHttpRequests().anyRequest().authenticated().and().httpBasic();| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| HTTP Basic without HTTPS | Minimal | 0 | Slightly delayed due to auth | [X] Bad |
| HTTP Basic with HTTPS and caching | Minimal | 0 | Minimal delay, secure | [OK] Good |