diff --git a/extensions/yii/authclient/clients/YandexOpenId.php b/extensions/yii/authclient/clients/YandexOpenId.php new file mode 100644 index 0000000..f2a856e --- /dev/null +++ b/extensions/yii/authclient/clients/YandexOpenId.php @@ -0,0 +1,29 @@ + + * @since 2.0 + */ +class YandexOpenId extends OpenId +{ + public function init() + { + parent::init(); + $this->setIdentity('http://openid.yandex.ru'); + $this->requiredAttributes = [ + 'namePerson', + 'contact/email', + ]; + } +} \ No newline at end of file