Loading tutorials
@Bean methods work in a @Configuration class. You should also know the basics of HTTP: methods, status codes, and headers such as Authorization. A rough idea of3 min read@Bean methods in a @Configuration class. You should also know HTTP methods, status codes and headers.2 min readSecurityFilterChain bean. It also assumes you know the difference between authentication (who are you?) and authorization (what may you do?). Here you follow one request through authentication, step by step.2 min read@Bean methods, and read the filter chain setup from earlier chapters. You will register users, hash their passwords, and see how Spring Security checks a login against them.2 min read@Bean methods, and read a SecurityFilterChain from the previous chapter. You should also know that HTTP is stateless and that a session is server-side memory tied to a cookie.3 min read@Bean method is, and you have seen a basic SecurityFilterChain. Here you learn how authorizeHttpRequests decides which callers can reach which paths.2 min readSecurityFilterChain bean, and know how HTTP methods, status codes, and cookies work. You should also know the difference between stateless and session-based authentication from the previous chapters.2 min readSecurityFilterChain bean (see the earlier chapters) and know basic HTTP headers. It covers what CORS is, how to configure it in Spring Security, and the errors that most often go wrong.2 min readSecurityFilterChain bean, know how stateless sessions work, and understand role and authority rules for HTTP requests. Here you will turn the API into an OAuth2 resource server that accepts JWT bearer tokens.2 min readSecurityFilterChain bean and know how roles and authorities appear in the SecurityContext. URL rules in the filter chain protect paths. Method security protects the Java methods behind them, which helps when the rule depends on a method argument or return val2 min readSecurityFilterChain bean, you know how authorizeHttpRequests rules work, and you understand the difference between authentication and authorization from earlier chapters. Here you will control what a client receives when a request is rejected.2 min readSecurityFilterChain as in the earlier chapters. It shows how to check each security rule with MockMvc and the spring-security-test library.2 min read