/** * @ignore */ public function jwsDecode($hash, $authentication) { $http = new Simplify_HTTP(); $data = $http->jwsDecode($authentication, $hash); return json_decode($data, true); }
private static function sendRequest($props, $context, $authentication) { $url = Simplify_Constants::OAUTH_BASE_URL . '/' . $context; $http = new Simplify_HTTP(); $resp = $http->oauthRequest($url, $props, $authentication); return $resp; }
/** * @ignore */ public function jwsDecode($hash, $publicKey = null, $privateKey = null) { $http = new Simplify_HTTP(); if ($publicKey == null) { $publicKey = Simplify::$publicKey; } if ($privateKey == null) { $privateKey = Simplify::$privateKey; } $data = $http->jwsDecode($publicKey, $privateKey, $hash); return json_decode($data, true); }