![]() |
FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
Controller for Auth requests. More...


Public Member Functions | |
| getAuthHeaders ($request, $response, $args) | |
| createNewJwtToken ($request, $response, $args) | |
Public Member Functions inherited from Fossology\UI\Api\Controllers\RestController | |
| __construct ($container) | |
Private Member Functions | |
| arrayKeysExists ($array, $keys) | |
| Check if a list of keys exists in associative array. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Fossology\UI\Api\Controllers\RestController | |
| $container | |
| $restHelper | |
| $dbHelper | |
Controller for Auth requests.
Controller for bad requests.
Definition at line 38 of file AuthController.php.
|
private |
Check if a list of keys exists in associative array.
This function takes a list of keys which should appear in an associative array. The function flips the key array to make it as an associative array. It then uses the array_diff_key() to compare the two arrays.
| array | $array | Associative array to check keys against |
| array | $keys | Array of keys to check |
Definition at line 153 of file AuthController.php.
| Fossology\UI\Api\Controllers\AuthController::createNewJwtToken | ( | $request, | |
| $response, | |||
| $args | |||
| ) |
Get the JWT authentication headers for the user
| ServerRequestInterface | $request | |
| ResponseInterface | $response | |
| array | $args |
Definition at line 67 of file AuthController.php.
| Fossology\UI\Api\Controllers\AuthController::getAuthHeaders | ( | $request, | |
| $response, | |||
| $args | |||
| ) |
Get the authentication headers for the user.
| ServerRequestInterface | $request | |
| ResponseInterface | $response | |
| array | $args |
Definition at line 50 of file AuthController.php.