spring-security Flashcards

1
Q

Define authentication

A

It is the process of verifying the identity of the user based on the credentials provided

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define authorization

A

It is the process of determining if the user has access to a particular data, assuming that user is authenticated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define Principle

A

The currently authenticated user.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define Granted authority

A

Permissions given to the authenticated user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define role

A

Group of permissions for a particular user.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which maven dependency is required to initialize a spring boot web app

A

spring-boot-starter-web

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which maven dependency automatically adds spring security to the app

A

spring-boot-starter-security

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

which property is used to set password for spring secured apps

A

spring.security.web.password in application.properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is the spring-boot default login and logout page?

A

localhost:8080/hello/login | localhost:8080/hello/logout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

DaoAuthenticationProvider fetches details of user from ___

A

UserDetailsService

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which class does Security configurer extend?

A

WebSecurityConfigurerAdapter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which annotation is required by the security configure class?

A

@EnableWebSecurity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

This overloaded method is used to configure security two times

A
protected configure(AuthenticationManagerBuilder auth);
public configure(HttpSecurity http)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly