-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathauthenticators.yaml
41 lines (41 loc) · 2.22 KB
/
authenticators.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
questions:
-
uuid: 1eebf878-8ba1-61c4-9205-99d84c92580c
question: 'Is user authenticated in all of security firewalls after a successful login:'
answers:
- { value: 'Yes, it happens automatically', correct: false }
- { value: 'Yes, if firewalls have the same value of the `context` option', correct: true }
- { value: 'Yes, if option `shared` is set to true', correct: false }
- { value: 'No, it is not possible, firewalls are independent from each other', correct: false }
help: 'https://symfony.com/doc/current/reference/configuration/security.html#reference-security-firewall-context'
-
uuid: 1eebf878-8ba4-632e-95ed-99d84c92580c
question: 'Which of the following is the AccessDecisionManager default strategy?'
answers:
- { value: affirmative, correct: true }
- { value: unanimous, correct: false }
- { value: consensus, correct: false }
help: 'https://github.com/symfony/symfony/blob/7.1/src/Symfony/Component/Security/Core/Authorization/AccessDecisionManager.php#L43'
-
uuid: 1eeda458-0d6c-635c-b4b2-75c742f4f6a8
question: 'Which method do you have to implement in your custom Authenticator which extends the AbstractAuthenticator ?'
answers:
- { value: supports(), correct: true }
- { value: supportsClass(), correct: false }
- { value: authenticate(), correct: true }
- { value: __invoke(), correct: false }
- { value: execute(), correct: false }
- { value: onAuthenticationSuccess, correct: true }
- { value: onSuccess, correct: false }
- { value: onAuthenticationFailure, correct: true }
- { value: onFailure, correct: false }
help: 'https://symfony.com/doc/current/security/custom_authenticator.html'
-
uuid: 1eeda476-0ab8-61c4-b6b3-afb7a9ee0358
question: 'In a Custom Authenticator, which object is available for return in the function authenticate ?'
answers:
- { value: Passport(), correct: true }
- { value: "CustomCredentials(['username'=>$username, 'password'=> $plainPassword])", correct: false }
- { value: UserBadge(), correct: false }
- { value: SelfValidatingPassport(), correct: true }
help: 'https://symfony.com/doc/current/security/custom_authenticator.html'