When building a Spring Boot application, you often need to secure your endpoints using Spring Security. At the same time, tools like Swagger UI or Springdoc OpenAPI help document and test your APIs. However, configuring Spring Security to allow access to Swagger resources while keeping your application secure can be