PHPackages                             nodge/yii-eauth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. nodge/yii-eauth

ActiveLibrary

nodge/yii-eauth
===============

EAuth extension allows to authenticate users by the OpenID, OAuth 1.0 and OAuth 2.0 providers.

1.2.0(9y ago)32641.6k↓100%110[16 issues](https://github.com/Nodge/yii-eauth/issues)[1 PRs](https://github.com/Nodge/yii-eauth/pulls)BSD 2-Clause LicensePHPPHP &gt;=5.3.0

Since Jul 27Pushed 6y ago41 watchersCompare

[ Source](https://github.com/Nodge/yii-eauth)[ Packagist](https://packagist.org/packages/nodge/yii-eauth)[ Docs](https://github.com/Nodge/yii-eauth)[ RSS](/packages/nodge-yii-eauth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Yii EAuth extension
===================

[](#yii-eauth-extension)

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.

- [Demo](http://nodge.ru/yii-eauth/demo/)
- [Demo project](https://github.com/Nodge/yii-eauth-demo/)
- [Installation](#installation)
- [Version for yii2](https://github.com/Nodge/yii2-eauth/)

### Why own extension and not a third-party service?

[](#why-own-extension-and-not-a-third-party-service)

The implementation of the authorization on your own server has several advantages:

- Full control over the process: what will be written in the authorization window, what data we get, etc.
- Ability to change the appearance of the widget.
- When logging via OAuth is possible to invoke methods on API.
- Fewer dependencies on third-party services - more reliable application.

### The extension allows you to:

[](#the-extension-allows-you-to)

- Ignore the nuances of authorization through the different types of services, use the class based adapters for each service.
- Get a unique user ID that can be used to register user in your application.
- Extend the standard authorization classes to obtain additional data about the user.
- Work with the API of social networks by extending the authorization classes.
- Set up a list of supported services, customize the appearance of the widget, use the popup window without closing your application.

### Extension includes:

[](#extension-includes)

- The component that contains utility functions.
- A widget that displays a list of services in the form of icons and allowing authorization in the popup window.
- Base classes to create your own services.
- Ready for authenticate via Google, Twitter, Facebook and other providers.

### Included services:

[](#included-services)

- OpenID:
    - Yahoo
    - Steam
    - Wargaming
- OAuth1:
    - Twitter
    - LinkedIn
- OAuth2:
    - Google
    - Facebook
    - Live
    - GitHub
    - Yandex (ru)
    - VKontake (ru)
    - Mail.ru (ru)
    - Odnoklassniki (ru)
    - Moi Krug(ru)
    - Dropbox
    - EVE Online

### Resources

[](#resources)

- [Yii EAuth](https://github.com/Nodge/yii-eauth)
- [Demo](http://nodge.ru/yii-eauth/demo/)
- [Demo project](https://github.com/Nodge/yii-eauth-demo/)
- [Yii Framework](http://yiiframework.com/)
- [OpenID](http://openid.net/)
- [OAuth](http://oauth.net/)
- [OAuth 2.0](http://oauth.net/2/)
- [loid extension](http://www.yiiframework.com/extension/loid)
- [EOAuth extension](http://www.yiiframework.com/extension/eoauth)

### Requirements

[](#requirements)

- Yii 1.1 or above
- PHP curl extension
- [loid extension](http://www.yiiframework.com/extension/loid)
- [EOAuth extension](http://www.yiiframework.com/extension/eoauth)

Installation
------------

[](#installation)

- Install loid and EOAuth extensions
- Extract the release file under `protected/extensions`
- In your `protected/config/main.php`, add the following:

```
