Class to handle ajax calls to revoke an API token.
More...
|
const | NAME = "manage-token" |
|
const | PERMISSION = "permission" |
|
const | REQUIRES_LOGIN = "requiresLogin" |
|
const | ENABLE_MENU = "ENABLE_MENU" |
|
const | LEVEL = "level" |
|
const | DEPENDENCIES = "dependencies" |
|
const | INIT_ORDER = "initOrder" |
|
const | MENU_LIST = "menuList" |
|
const | MENU_ORDER = "menuOrder" |
|
const | MENU_TARGET = "menuTarget" |
|
const | TITLE = "title" |
|
Class to handle ajax calls to revoke an API token.
Definition at line 32 of file AjaxManageToken.php.
Fossology\UI\Ajax\AjaxManageToken::handle |
( |
Request |
$request | ) |
|
|
protected |
Revoke an active API token.
- Parameters
-
- Returns
- Response Status as true if token is revoked or false on failure.
Definition at line 55 of file AjaxManageToken.php.
Fossology\UI\Ajax\AjaxManageToken::invalidateToken |
( |
|
$tokenPk | ) |
|
|
private |
Mark a token as invalid/inactive.
- Parameters
-
int | $tokenPk | The token id to be revoked |
- Returns
- array Array with success status.
Definition at line 120 of file AjaxManageToken.php.
Fossology\UI\Ajax\AjaxManageToken::revealToken |
( |
|
$tokenPk, |
|
|
|
$hostname |
|
) |
| |
|
private |
Regenerate the JWT token from DB.
- Parameters
-
int | $tokenPk | The token id |
string | $hostname | Host issuing the token |
- Returns
- array Array with success status and token.
Definition at line 95 of file AjaxManageToken.php.
DbManager Fossology\UI\Ajax\AjaxManageToken::$dbManager |
|
private |
The documentation for this class was generated from the following file: