1 | <?php |
||
38 | class AuthorizationService extends AbstractAuthenticationService |
||
39 | { |
||
40 | |||
41 | /** |
||
42 | * User used when authenticating the page indexer for protected pages, |
||
43 | * to allow the indexer to access and protected content. May also allow to |
||
44 | * identify requests by the page indexer. |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | const SOLR_INDEXER_USERNAME = '__SolrIndexerUser__'; |
||
49 | |||
50 | /** |
||
51 | * Gets a fake frontend user record to allow access to protected pages. |
||
52 | * |
||
53 | * @return array An array representing a frontend user. |
||
54 | */ |
||
55 | public function getUser() |
||
63 | |||
64 | /** |
||
65 | * Authenticates the page indexer frontend user to grant it access to |
||
66 | * protected pages and page content. |
||
67 | * |
||
68 | * Returns 200 which automatically grants access for the current fake page |
||
69 | * indexer user. A status of >= 200 also tells TYPO3 that it doesn't need to |
||
70 | * conduct other services that might be registered for "their opinion" |
||
71 | * whether a user is authenticated. |
||
72 | * |
||
73 | * @see \TYPO3\CMS\Core\Authentication\AbstractUserAuthentication::checkAuthentication() |
||
74 | * @param array $user Array of user data |
||
75 | * @return int Returns 200 to grant access for the page indexer. |
||
76 | */ |
||
77 | public function authUser($user) |
||
89 | |||
90 | /** |
||
91 | * Creates user group records so that the page indexer is granted access to |
||
92 | * protected pages. |
||
93 | * |
||
94 | * @param array $user Data of user. |
||
95 | * @param array $knownGroups Group data array of already known groups. This is handy if you want select other related groups. Keys in this array are unique IDs of those groups. |
||
96 | * @return mixed Groups array, keys = uid which must be unique |
||
97 | */ |
||
98 | 1 | public function getGroups( |
|
126 | } |
||
127 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.