29,13 → 29,11 |
class OIDplusPageRaRestApi extends OIDplusPagePluginRa { |
|
/** |
* @param string $actionID |
* @param array $params |
* @return array |
* @throws OIDplusException |
*/ |
public function action(string $actionID, array $params): array { |
if ($actionID == 'blacklistJWT') { |
private function action_Blacklist(array $params): array { |
if (!OIDplus::baseConfig()->getValue('JWT_ALLOW_REST_USER', true)) { |
throw new OIDplusException(_L('The administrator has disabled this feature. (Base configuration setting %1).','JWT_ALLOW_REST_USER')); |
} |
53,6 → 51,17 |
OIDplusAuthContentStoreJWT::jwtBlacklist($gen, $sub); |
|
return array("status" => 0); |
} |
|
/** |
* @param string $actionID |
* @param array $params |
* @return array |
* @throws OIDplusException |
*/ |
public function action(string $actionID, array $params): array { |
if ($actionID == 'blacklistJWT') { |
return $this->action_Blacklist($params); |
} else { |
return parent::action($actionID, $params); |
} |