EAuth扩展允许通过OpenID,OAuth 1.0和OAuth 2.0供应商认证用户.
EAuth extension allows to authenticate users with accounts on other websites. Supported protocols: OpenID, OAuth 1.0 and OAuth 2.0.
EAuth is a extension for provide a unified (does not depend on the selected service) method to authenticate the user. So, the extension itself does not perform login, does not register the user and does not bind the user accounts from different providers.
The implementation of the authorization on your own server has several advantages:
protected/extensionsprotected/config/main.php, add the following:…The source code of the demo is available here.
…user->hasFlash('error')) {
echo '
';
}
?>
...
Do you already have an account on one of these sites? Click the logo to log in with it here:
widget('ext.eauth.EAuthWidget', array('action' => 'site/login'));
?>To receive all the necessary data to your application, you can override the base class of any provider.
Base classes are stored in protected/extensions/eauth/services/.
Examples of extended classes can be found in protected/extensions/eauth/custom_services/.
After overriding the base class, you need to modify your configuration file to set new name of the class.
Also you may need to override the EAuthUserIdentity class to store additional data.
/protected/extensions/eauth/messages/[lang]/eauth.php to /protected/messages/[lang]/eauth.php to translate the EAuth extension into other languages./protected/extensions/eauth/messages/blank/eauth.php.Some time ago I developed this extension for LiStick.ru and I still support the extension.
The extension was released under the New BSD License, so you'll find the latest version on GitHub.
暂无开放 Issues,或尚未同步最近议题。