From 722c93fc4860b9104e81cf66110465700cd1dd49 Mon Sep 17 00:00:00 2001 From: Paul Klimov Date: Fri, 20 Dec 2013 11:45:20 +0200 Subject: [PATCH] Yandex OpenId client added. --- extensions/yii/authclient/clients/YandexOpenId.php | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 extensions/yii/authclient/clients/YandexOpenId.php 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