Исправлено передение авторизатора для 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() { public function behaviors() {
return ArrayHelper::merge(parent::behaviors(), [ return ArrayHelper::merge(parent::behaviors(), [
'authenticator' => [ 'authenticator' => [
'except' => ['validate', 'token'], 'only' => ['complete'],
], ],
'access' => [ 'access' => [
'class' => AccessControl::class, 'class' => AccessControl::class,
'only' => ['complete'],
'rules' => [ 'rules' => [
[
'actions' => ['validate', 'token'],
'allow' => true,
'roles' => ['?'],
],
[ [
'class' => ActiveUserRule::class, 'class' => ActiveUserRule::class,
'actions' => ['complete'], 'actions' => ['complete'],