FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Controllers\AuthController Class Reference

Controller for Auth requests. More...

Inheritance diagram for Fossology\UI\Api\Controllers\AuthController:
Inheritance graph
Collaboration diagram for Fossology\UI\Api\Controllers\AuthController:
Collaboration graph

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
 

Detailed Description

Controller for Auth requests.

Controller for bad requests.

Definition at line 38 of file AuthController.php.

Member Function Documentation

Fossology\UI\Api\Controllers\AuthController::arrayKeysExists (   $array,
  $keys 
)
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.

Parameters
array$arrayAssociative array to check keys against
array$keysArray of keys to check
Returns
boolean True if all keys exists, false otherwise. array_flip() array_diff_key()

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

Parameters
ServerRequestInterface$request
ResponseInterface$response
array$args
Returns
ResponseInterface

Definition at line 67 of file AuthController.php.

Fossology\UI\Api\Controllers\AuthController::getAuthHeaders (   $request,
  $response,
  $args 
)

Get the authentication headers for the user.

Parameters
ServerRequestInterface$request
ResponseInterface$response
array$args
Returns
ResponseInterface
Deprecated:
Use createNewJwtToken()

Definition at line 50 of file AuthController.php.


The documentation for this class was generated from the following file: