~/talk

Authorization in Spring Security: permissions, roles and beyond

Talkat Spring I/O 2025 · 2025-05-22..05-23· [security]
slides:none on file

Live-coded Spring Boot app shows concrete patterns: request-level rules with AuthorizationManager lambdas, method-level checks via preAuthorize/postAuthorize and SPEL, and object-level proxies that redact fields by returning a proxy-wrapped domain object. Demonstrates a reusable @AllowedDomains annotation (uses Spring Security 6.3 template expressions), a handle-authorization-denied bean to return null/redacted instead of 403, a custom authentication detail source to record login type, and separate security filter chains for HTTP Basic APIs — all working end-to-end.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Why authorization focus
  3. 3:14Demo setup
  4. 8:07Request-level mechanics
  5. 13:46Advanced authorization rules
  6. 18:03Key takeaways
  7. 19:07Method-level with pre-authorize
  8. 21:56Post-authorize decisions
  9. 23:20Custom security annotations
  10. 27:15Handling denied access
  11. 29:00Object-level security
  12. 33:19Authorization design
  13. 36:52Authentication context
  14. 41:10Custom auth details
  15. 45:03Custom filter chains
  16. 48:18Authorization context
  17. 48:38Splitting filter chains
  18. 49:20Closing remarks
~/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.