eazybytes/spring-security — reverse-engineered prompt
Reverse engineered prompt
Build me a simple Spring Boot project that works like a hands on Spring Security learning playground. I want it to show the main security ideas in a way I can run locally and test myself, starting from basic login and role based access, then moving into password encoding, custom security filters, CORS and CSRF handling, JWT based authentication, OAuth2 and OpenID Connect login, method level security, and a sample setup that can work with Keycloak or a Spring authorization server.
Please keep the examples easy to follow, like progressive sections or small modules, so someone can learn from beginner to more advanced topics. Add a few clear endpoints or pages that show public access, authenticated access, and admin only access. Include sample users, roles, and authorities, plus anything needed to test with Postman. I also want sensible local setup for MySQL and Keycloak, with simple instructions so I can start everything and try the flows without guessing. Look up current docs online if you need to.
Want more depth? Deep Reverse