~/talk

Spring Security Patterns

Talkat Devnexus 2021 · 2021-02-17..02-18· [security, spring]
links:none on file
slides:none on file

A demo Spring Boot app gets secure-by-default after adding spring-boot-starter-security: endpoints switch from 200 to 401 and a random password is generated. The app shows a deployable pattern set: replace UserDetailsService bean (last-one-wins), inspect the filter chain and fail-fast CSRF filter, use SecurityContextHolder threadlocal then method parameter injection for Authentication, flip to JWT resource-server and compose a custom GrantedAuthoritiesConverter (final classes force delegation), test that pilot token can move the craft while ria cannot, then move authorization rules into a SecurityFilterChain bean.

AI-written summary · about

  1. 0:00Introduction
  2. 0:58Spring Security by Default
  3. 3:37Application of Least Privilege
  4. 7:13Replacing Configuration
  5. 12:10Authentication
  6. 15:03dependency injection
  7. 20:14granted authorities
~/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.