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

  1. 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.
  2. 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.
  3. Config- spring-security-config.jar This module used to use the Spring Security XML name-space.
  4. LDAP spring-security-ldap.jar
  5. OAuth 2.0 Core spring-security-oauth2-core.jar
  6. OAuth 2.0 Client spring-security-oauth2-client.jar
  7. OAuth 2.0 JOSE spring-security-oauth2-jose.jar
  8. OAuth 2.0 Resource Server spring-security-oauth2-resource-server.jar
  9. ACL spring-security-acl.jar
  10. CAS spring-security-cas.jar
  11. Test spring-security-test.jar
  12. Taglibs spring-security-taglibs.jar

Links to this note