1 | <?php |
||
35 | class Authentication extends \TYPO3\CMS\Sv\AbstractAuthenticationService { |
||
36 | |||
37 | |||
38 | /** |
||
39 | * @var \AOE\AoeIpauth\Service\IpMatchingService |
||
40 | */ |
||
41 | protected $ipMatchingService = NULL; |
||
42 | |||
43 | /** |
||
44 | * @var \AOE\AoeIpauth\Domain\Service\FeEntityService |
||
45 | */ |
||
46 | protected $feEntityService = NULL; |
||
47 | |||
48 | /** |
||
49 | * @var \AOE\AoeIpauth\Domain\Service\IpService |
||
50 | */ |
||
51 | protected $ipService = NULL; |
||
52 | |||
53 | /** |
||
54 | * Makes sure the TCA is readable, necessary for enableFields to work |
||
55 | * Is de-facto called when using the Preview BE Module |
||
56 | * |
||
57 | * @return void |
||
58 | */ |
||
59 | 6 | protected function safeguardContext() { |
|
73 | |||
74 | /** |
||
75 | * Gets the user automatically |
||
76 | * |
||
77 | * @return bool |
||
78 | */ |
||
79 | 3 | public function getUser() { |
|
97 | |||
98 | /** |
||
99 | * Authenticate a user |
||
100 | * Return 200 if the IP is right. |
||
101 | * This means that no more checks are needed. |
||
102 | * Otherwise authentication may fail because we may don't have a password. |
||
103 | * |
||
104 | * @param array Data of user. |
||
105 | * @return bool |
||
106 | */ |
||
107 | 2 | public function authUser($user) { |
|
132 | |||
133 | /** |
||
134 | * Get the group list |
||
135 | * |
||
136 | * @param string $user |
||
137 | * @param array $knownGroups |
||
138 | * @return array |
||
139 | */ |
||
140 | 1 | public function getGroups($user, $knownGroups) { |
|
157 | |||
158 | /** |
||
159 | * Returns TRUE if the userId's associated IPs match the client IP |
||
160 | * |
||
161 | * @param int $userId |
||
162 | * @param string $clientIp |
||
163 | * @return bool |
||
164 | */ |
||
165 | protected function doesCurrentUsersIpMatch($userId, $clientIp) { |
||
177 | |||
178 | /** |
||
179 | * Finds all users with IP authentication enabled |
||
180 | * |
||
181 | * @param string $ip |
||
182 | * @return array |
||
183 | */ |
||
184 | protected function findAllUsersByIpAuthentication($ip) { |
||
188 | |||
189 | /** |
||
190 | * Finds all groups with IP authentication enabled |
||
191 | * |
||
192 | * @param string $ip |
||
193 | * @return array |
||
194 | */ |
||
195 | protected function findAllGroupsByIpAuthentication($ip) { |
||
199 | |||
200 | /** |
||
201 | * @return \AOE\AoeIpauth\Domain\Service\FeEntityService |
||
202 | */ |
||
203 | protected function getFeEntityService() { |
||
209 | |||
210 | /** |
||
211 | * @return \AOE\AoeIpauth\Domain\Service\IpService |
||
212 | */ |
||
213 | protected function getIpService() { |
||
219 | |||
220 | /** |
||
221 | * @return \AOE\AoeIpauth\Service\IpMatchingService |
||
222 | */ |
||
223 | protected function getIpMatchingService() { |
||
229 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.