%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11584/task/11584/cwd/html/water/vendor/yiisoft/yii2-authclient/src/clients/ |
Upload File : |
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\authclient\clients; use yii\authclient\OAuth2; /** * Live allows authentication via Microsoft Live OAuth. * * In order to use Microsoft Live OAuth you must register your application at <https://account.live.com/developers/applications> * * Example application configuration: * * ```php * 'components' => [ * 'authClientCollection' => [ * 'class' => 'yii\authclient\Collection', * 'clients' => [ * 'live' => [ * 'class' => 'yii\authclient\clients\Live', * 'clientId' => 'live_client_id', * 'clientSecret' => 'live_client_secret', * ], * ], * ] * // ... * ] * ``` * * @see https://account.live.com/developers/applications * @see http://msdn.microsoft.com/en-us/library/live/hh243647.aspx * * @author Paul Klimov <klimov.paul@gmail.com> * @since 2.0 */ class Live extends OAuth2 { /** * {@inheritdoc} */ public $authUrl = 'https://login.live.com/oauth20_authorize.srf'; /** * {@inheritdoc} */ public $tokenUrl = 'https://login.live.com/oauth20_token.srf'; /** * {@inheritdoc} */ public $apiBaseUrl = 'https://apis.live.net/v5.0'; /** * {@inheritdoc} */ public function init() { parent::init(); if ($this->scope === null) { $this->scope = implode(',', [ 'wl.basic', 'wl.emails', ]); } } /** * {@inheritdoc} */ protected function initUserAttributes() { return $this->api('me', 'GET'); } /** * {@inheritdoc} */ protected function defaultName() { return 'live'; } /** * {@inheritdoc} */ protected function defaultTitle() { return 'Live'; } }