Spring security - required dependencies to use spring security
For applications using springboot
If Spring Security is on the classpath, Spring Boot automatically secures all HTTP endpoints with “basic” authentication. However, you can further customize the security settings.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
For applications that are not using springboot
https://docs.spring.io/spring-security/reference/modules.html
- Core –
spring-security-core.jar
This module contains core authentication and access-control related classes, basic provisioning APIs. This is mandatory for providing spring security to any J2EE based enterprise application. This module supports non-web applications, too. - Web –
spring-security-web.jar
This module contains filters and web-based authentication, like access control for URLs in a Servlet environment. This module is responsible to provide security to your Spring MVC or any other web application. - Config-
spring-security-config.jar
This module used to use the Spring Security XML name-space. - LDAP
spring-security-ldap.jar
- OAuth 2.0 Core
spring-security-oauth2-core.jar
- OAuth 2.0 Client
spring-security-oauth2-client.jar
- OAuth 2.0 JOSE
spring-security-oauth2-jose.jar
- OAuth 2.0 Resource Server
spring-security-oauth2-resource-server.jar
- ACL
spring-security-acl.jar
- CAS
spring-security-cas.jar
- Test
spring-security-test.jar
- Taglibs
spring-security-taglibs.jar