Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1292 → Rev 1293

/trunk/plugins/viathinksoft/adminPages/120_registration/OIDplusPageAdminRegistration.class.php
58,15 → 58,12
}
 
/**
* @param string $actionID
* This action is called by the ViaThinkSoft server in order to verify that the system is in the ownership of the correct private key
* @param array $params
* @return array
* @throws OIDplusException
*/
public function action(string $actionID, array $params): array {
if ($actionID == 'verify_pubkey') {
// This action is called by the ViaThinkSoft server in order to verify that the system is in the ownership of the correct private key
 
private function action_VerifyPubKey(array $params): array {
_CheckParamExists($params, 'challenge');
 
$payload = 'oidplus-verify-pubkey:'.sha3_512($params['challenge']);
80,6 → 77,17
"status" => 0,
"response" => base64_encode($signature)
);
}
 
/**
* @param string $actionID
* @param array $params
* @return array
* @throws OIDplusException
*/
public function action(string $actionID, array $params): array {
if ($actionID == 'verify_pubkey') {
return $this->action_VerifyPubKey($params);
} else {
return parent::action($actionID, $params);
}