1 | <?php |
||
35 | class Authentication extends \TYPO3\CMS\Sv\AbstractAuthenticationService |
||
36 | { |
||
37 | |||
38 | |||
39 | /** |
||
40 | * @var \AOE\AoeIpauth\Service\IpMatchingService |
||
41 | */ |
||
42 | protected $ipMatchingService = null; |
||
43 | |||
44 | /** |
||
45 | * @var \AOE\AoeIpauth\Domain\Service\FeEntityService |
||
46 | */ |
||
47 | protected $feEntityService = null; |
||
48 | |||
49 | /** |
||
50 | * @var \AOE\AoeIpauth\Domain\Service\IpService |
||
51 | */ |
||
52 | protected $ipService = null; |
||
53 | |||
54 | /** |
||
55 | * Makes sure the TCA is readable, necessary for enableFields to work |
||
56 | * Is de-facto called when using the Preview BE Module |
||
57 | * |
||
58 | * @return void |
||
59 | */ |
||
60 | 6 | protected function safeguardContext() |
|
75 | |||
76 | /** |
||
77 | * Gets the user automatically |
||
78 | * |
||
79 | * @return bool |
||
80 | */ |
||
81 | 3 | public function getUser() |
|
100 | |||
101 | /** |
||
102 | * Authenticate a user |
||
103 | * Return 200 if the IP is right. |
||
104 | * This means that no more checks are needed. |
||
105 | * Otherwise authentication may fail because we may don't have a password. |
||
106 | * |
||
107 | * @param array Data of user. |
||
108 | * @return bool |
||
109 | */ |
||
110 | 2 | public function authUser($user) |
|
135 | |||
136 | /** |
||
137 | * Get the group list |
||
138 | * |
||
139 | * @param string $user |
||
140 | * @param array $knownGroups |
||
141 | * @return array |
||
142 | */ |
||
143 | 1 | public function getGroups($user, $knownGroups) |
|
161 | |||
162 | /** |
||
163 | * Returns TRUE if the userId's associated IPs match the client IP |
||
164 | * |
||
165 | * @param int $userId |
||
166 | * @param string $clientIp |
||
167 | * @return bool |
||
168 | */ |
||
169 | protected function doesCurrentUsersIpMatch($userId, $clientIp) |
||
182 | |||
183 | /** |
||
184 | * Finds all users with IP authentication enabled |
||
185 | * |
||
186 | * @param string $ip |
||
187 | * @return array |
||
188 | */ |
||
189 | protected function findAllUsersByIpAuthentication($ip) |
||
194 | |||
195 | /** |
||
196 | * Finds all groups with IP authentication enabled |
||
197 | * |
||
198 | * @param string $ip |
||
199 | * @return array |
||
200 | */ |
||
201 | protected function findAllGroupsByIpAuthentication($ip) |
||
206 | |||
207 | /** |
||
208 | * @return \AOE\AoeIpauth\Domain\Service\FeEntityService |
||
209 | */ |
||
210 | protected function getFeEntityService() |
||
217 | |||
218 | /** |
||
219 | * @return \AOE\AoeIpauth\Domain\Service\IpService |
||
220 | */ |
||
221 | protected function getIpService() |
||
228 | |||
229 | /** |
||
230 | * @return \AOE\AoeIpauth\Service\IpMatchingService |
||
231 | */ |
||
232 | protected function getIpMatchingService() |
||
239 | } |
||
240 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.