Реализован функционал получения информации об аккауте после выполнения oAuth авторизации

This commit is contained in:
ErickSkrauch
2016-08-06 16:36:24 +03:00
parent 26b37c2f6b
commit a48c1432c6
15 changed files with 147 additions and 63 deletions

View File

@ -0,0 +1,8 @@
<?php
namespace api\components\ApiUser;
class AccessControl extends \yii\filters\AccessControl {
public $user = 'apiUser';
}

View File

@ -10,10 +10,14 @@ use yii\web\User as YiiUserComponent;
*/
class Component extends YiiUserComponent {
public $identity = Identity::class;
public $identityClass = Identity::class;
public $enableSession = false;
public $loginUrl = null;
public function getAccessChecker() {
return new AuthChecker();
}
}