ソースを参照

makes privateKeyFile mandatory for RSA-SHA1 method

TheFRedFox 9 年 前
コミット
bedc93204e
1 ファイル変更3 行追加0 行削除
  1. 3 0
      src/Network/Http/Auth/Oauth.php

+ 3 - 0
src/Network/Http/Auth/Oauth.php

@@ -61,6 +61,9 @@ class Oauth
                 break;
 
             case 'RSA-SHA1':
+                if (!isset($credentials['privateKeyFile'])) {
+                    return;
+                }
                 $value = $this->_rsaSha1($request, $credentials);
                 break;