~/talk

Securing SPAs with Spring

Talkat Spring I/O 2022 · 2022-05-26..05-27· [security, web-platform]
links:none on file
slides:none on file

Adds Spring Security starter to a Spring Boot backend and shows exact configs that stop real failures: configure a 401 authentication entry point instead of form-login redirects, enable CORS for localhost:4200, enable CSRF with the CookieCsrfTokenRepository double-submit cookie so Angular can send the X-XSRF header, use @PostAuthorize expressions to prevent insecure direct object references, switch to a BFF with Spring Cloud Gateway + Spring Authorization Server and token relay to use JWT Resource Server auth, and add Content-Security-Policy / X-Frame-Options headers to block XSS and clickjacking.

AI-written summary · about

  1. 0:00Start
  2. 3:49Add the Spring Security Starter Dependency
  3. 5:31Security Configuration
  4. 8:54Configure the Authentication Entry Point Interface
  5. 9:59Customize Form Logging
  6. 10:37User Credentials
  7. 15:44Cross Site Request Forgery
  8. 16:49Double Submit Cookie Pattern
  9. 21:29The Security Context Holder Class
  10. 22:33Method Injection
  11. 25:13The Insecure Direct Object Reference
  12. 34:03Back and Forth Front-End Pattern
  13. 36:41Bfs Security Configuration
  14. 38:18Token Relay Filter
  15. 38:45Pros and Cons
  16. 46:27Clickjacking
  17. 48:13Cross-Site Scripting
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.