Security Flashcards

1
Q

What are the root elements of security configuration?

A
access_denied_url
session_fixation_strategy
hide_user_not_found
always_authenticate_before_granting
erase_credentials
access_decision_manager
encoders
providers
firewalls
access_control
role_hierarchy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are allowed session fixation strategies?

A

none
migrate
invalidate

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

What are possible voter strategies?

A

affirmative
consensus
unanimous

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

What methods does Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface define?

A

isAnonymous(TokenInterface $token = null)
isRememberMe(TokenInterface $token = null)
isFullFledged(TokenInterface $token = null)

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

What methods does Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface define?

A

isGranted($attribute, $subject = null);

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

What is the default access decision strategy?

A

affirmative

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

What methods does Symfony\Component\Security\Core\Authorization\Voter\VoterInterface define?

A

vote(TokenInterface $token, $subject, array $attributes);

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

What methods does Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface define?

A

decide(TokenInterface $token, array $attributes, $object = null);

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

What are possible configuration keys under security.access_decision_manager branch?

A

service
strategy
allow_if_all_abstain
allow_if_equal_granted_denied

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

What are available configuration values for security encoders?

A
algorithm
migrate_from
hash_algorithm
key_length
ignore_case
encode_as_base64
iterations
cost
memory_cost
time_cost
id
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the recommended Symfony password hashing algorythm?

A

Sodium

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