spring-security Flashcards
Define authentication
It is the process of verifying the identity of the user based on the credentials provided
Define authorization
It is the process of determining if the user has access to a particular data, assuming that user is authenticated.
Define Principle
The currently authenticated user.
Define Granted authority
Permissions given to the authenticated user
Define role
Group of permissions for a particular user.
Which maven dependency is required to initialize a spring boot web app
spring-boot-starter-web
Which maven dependency automatically adds spring security to the app
spring-boot-starter-security
which property is used to set password for spring secured apps
spring.security.web.password in application.properties
what is the spring-boot default login and logout page?
localhost:8080/hello/login | localhost:8080/hello/logout
DaoAuthenticationProvider fetches details of user from ___
UserDetailsService
Which class does Security configurer extend?
WebSecurityConfigurerAdapter
Which annotation is required by the security configure class?
@EnableWebSecurity
This overloaded method is used to configure security two times
protected configure(AuthenticationManagerBuilder auth); public configure(HttpSecurity http)