Esempio n. 1
0
 /**
  * @ignore
  */
 public function jwsDecode($hash, $authentication)
 {
     $http = new Simplify_HTTP();
     $data = $http->jwsDecode($authentication, $hash);
     return json_decode($data, true);
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 /**
  * @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);
 }