|
|
@ -7,7 +7,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
namespace yii\authclient; |
|
|
|
namespace yii\authclient; |
|
|
|
|
|
|
|
|
|
|
|
use yii\base\Component; |
|
|
|
|
|
|
|
use yii\base\Exception; |
|
|
|
use yii\base\Exception; |
|
|
|
use yii\base\InvalidParamException; |
|
|
|
use yii\base\InvalidParamException; |
|
|
|
use Yii; |
|
|
|
use Yii; |
|
|
@ -21,10 +20,8 @@ use yii\helpers\Json; |
|
|
|
* @author Paul Klimov <klimov.paul@gmail.com> |
|
|
|
* @author Paul Klimov <klimov.paul@gmail.com> |
|
|
|
* @since 2.0 |
|
|
|
* @since 2.0 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
abstract class BaseOAuth extends Component implements ClientInterface |
|
|
|
abstract class BaseOAuth extends BaseClient implements ClientInterface |
|
|
|
{ |
|
|
|
{ |
|
|
|
use ClientTrait; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const CONTENT_TYPE_JSON = 'json'; // JSON format |
|
|
|
const CONTENT_TYPE_JSON = 'json'; // JSON format |
|
|
|
const CONTENT_TYPE_URLENCODED = 'urlencoded'; // urlencoded query string, like name1=value1&name2=value2 |
|
|
|
const CONTENT_TYPE_URLENCODED = 'urlencoded'; // urlencoded query string, like name1=value1&name2=value2 |
|
|
|
const CONTENT_TYPE_XML = 'xml'; // XML format |
|
|
|
const CONTENT_TYPE_XML = 'xml'; // XML format |
|
|
|