{"id":54275,"library":"spring-boot-starter-security","title":"Spring Boot Starter Security","description":"Starter for using Spring Security in Spring Boot applications.","status":"active","version":"4.0.6","language":"java","source_language":null,"source_url":"https://github.com/spring-projects/spring-boot","tags":["security","spring","authentication","authorization"],"install":[{"cmd":"<dependency>\n  <groupId>org.springframework.boot</groupId>\n  <artifactId>spring-boot-starter-security</artifactId>\n  <version>4.0.6</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.springframework.boot:spring-boot-starter-security:4.0.6'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"HttpSecurity","correct":"org.springframework.security.config.annotation.web.builders.HttpSecurity"}],"quickstart":{"code":"import org.springframework.security.config.annotation.web.builders.HttpSecurity;\nimport org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;\nimport org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;\n\n@EnableWebSecurity\npublic class SecurityConfig extends WebSecurityConfigurerAdapter {\n    @Override\n    protected void configure(HttpSecurity http) throws Exception {\n        http.authorizeRequests().anyRequest().authenticated().and().httpBasic();\n    }\n}","lang":"java","description":"Basic HTTP authentication configuration."},"warnings":[{"fix":"Upgrade to a newer version of Spring Boot and Spring Security.","message":"Spring Security 4.0.6 is outdated; use 5.x or 6.x for modern features.","severity":"breaking","affected_versions":"4.0.6"}],"env_vars":null,"search_vec":"'applic':13 'authent':16 'author':17 'boot':2,12 'secur':4,9,14 'spring':1,8,11,15 'starter':3,5 'use':7","created_at":"2026-06-15T08:57:11.517835+00:00","updated_at":"2026-06-15T08:57:11.517835+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://spring.io/projects/spring-boot","github":"https://github.com/spring-projects/spring-boot","docs":"https://appdoc.app/artifact/org.springframework.boot/spring-boot-starter-security/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth","web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}