What is Spring Security? The short answer.
Credit: @MarcoBehler https://bit.ly/2ZiaCDe
Servlet Filters: the cornerstone of Spring Security
Credit (image inspiration): CodeJava.net
Filter Chain: request's ordeal
chain.doFilter(req, res)
Authentication vs Authorization
Who?
What?
Filter Chain for Reactive Web
org.springframework.security.web.server.*
Get to Know (Some) of Your Filters!
LoginPageGeneratingWebFilter, LogoutWebFilter
AuthenticationWebFilter, SecurityContextServerWebExchangeWebFilter
AuthorizationWebFilter
Spring Security ≈ Filters Config
@Bean
fun springSecurityFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain =
http
.authorizeExchange()
.anyExchange().authenticated()
.and().formLogin()
.and().build()
new CsrfSpec()
new FormLoginSpec()
new LoginPageSpec()
new CsrfWebFilter()
CSRF protection enabled
Redirect to "/" after a successful login
Render the default login page
Why WebFlux?
Credit (image): spring.io
Let's Get Started!
In my YouTube tutorial you will learn how to
.. and more