Spring adding a spring security filter

Dealing with users and accounts is the part of domain of spring security. Now we gonna use spring security to protect our website from people who shouldn’t have access or shouldn’t have an account, people who didn’t have an account wont be able to access certain areas of website. We gonna use spring security to manage our user accounts as well as the whole process. we need to add a special spring filter that will handle all the requests coming to our application and we will figure out weather the people are allowed in or not. Spring will create a login form for us which is very powerful. before we are going to do that we need to add some dependencies

<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>4.1.0.RELEASE</version>
</dependency>

<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>4.1.0.RELEASE</version>
</dependency>

<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>4.1.0.RELEASE</version>
</dependency>




 

Balakrishna Pendyala

Author: Balakrishna Pendyala

Balakrishna is a Software Engineer working in Media Streaming Domain, and also worked on Banking and Health Care domains. His areas of interest include Object Oriented Design, SOLID Design principles, Restful Web Services and Open Source softwares including Spring, Spring Boot, and Hibernate.

If you found an error, highlight it and press Shift + Enter or click here to inform us.

Leave a Reply

Your email address will not be published. Required fields are marked *