Исправлено передение авторизатора для OAuth процесса

This commit is contained in:
ErickSkrauch 2016-12-12 00:07:39 +03:00
parent b00c4ae4fc
commit f2e6df4022

View File

@ -17,16 +17,12 @@ class OauthController extends Controller {
public function behaviors() {
return ArrayHelper::merge(parent::behaviors(), [
'authenticator' => [
'except' => ['validate', 'token'],
'only' => ['complete'],
],
'access' => [
'class' => AccessControl::class,
'only' => ['complete'],
'rules' => [
[
'actions' => ['validate', 'token'],
'allow' => true,
'roles' => ['?'],
],
[
'class' => ActiveUserRule::class,
'actions' => ['complete'],