yiisoft/yii2 — pull request #2015 by tanakahisateru (2014-01-17 11:10:02+00:00)
Title: fix JS redirect in OAuth callback view

OAuth success/cancel callback shows a view which includes JavaScript redirect back logic.

When my app configured to use this view without popup window,

```php
['site/auth'],
'popupMode' => false,
]); ?>
```

but if the main window previously opened via `` or such as in browser tabs, I get no actions in the view.

Because `window.opener` was set something (that might be already closed). Also `window.close()` was ignored tab because it might not be floating window... I guess.

It should be checked correctly if it had been popped up by this component. I think that to add window name assigned by `yii\authclient\widgets\Choice` is safer way here:

https://github.com/yiisoft/yii2/blob/master/extensions/authclient/widgets/assets/authchoice.js#L61