PHPackages                             krupni/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. krupni/yii-eauth

ActiveLibrary

krupni/yii-eauth
================

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

1.2.1(7y ago)114.8k↓100%1MITPHPPHP &gt;=5.3.0

Since Jul 27Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (5)Used By (0)

**This repository fork nodge/yii-eauth with updated dependencies packages**

**Install**

`composer require krupni/yii-eauth`

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:

```
