01 Sep 2021 ClassNotes
01 Sep 2021 ClassNotes
Spring Security
-------------------------------------------------------------------------
-> For every application we should provide some security to protect that
application from hackers.
-> As per the most recent verizon data breach investigation report-2020, 43% of
data breaches were attacks on web applications.
-> To protect our application from hacker attacks & data breaches we can use Spring
Security concept.
---------------------------------------------------------------------------------
-> Spring Security works on a concept called JAAS (Java Authentication &
Authorization Services).
-> Filters are used to apply some pre-processing logic based on that we can decide
weather to process that request or not.
-> In Spring Security we have predefined filter class to apply pre-processing logic
for the request
DelegatingFilterProxy
1) Authentication
2) Authorization
-> Authentication is the process of checking weather this user can access our
application or not.
-> Authorization is the process of checking weather this user having access for
this functionality/page or not.
---------------------------------------------------------------------------------
-> We can implement spring boot security authentication in below 3 ways