Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jorgebg/yii-eopenid

Yii Framework Extension. EOpenID class extends from CBaseUserIdentity and implements the OpenID protocol to authenticate a user. Based on Mewp's LightOpenID class.
https://github.com/jorgebg/yii-eopenid

Last synced: about 2 months ago
JSON representation

Yii Framework Extension. EOpenID class extends from CBaseUserIdentity and implements the OpenID protocol to authenticate a user. Based on Mewp's LightOpenID class.

Awesome Lists containing this project

README

        

Introduction
------------
EOpenID class extends from CBaseUserIdentity and implements the OpenID protocol to authenticate a user. Based on **Mewp's [LightOpenID](http://gitorious.org/lightopenid)** class.

[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=jorgebg&url=https://github.com/jorgebg/yii-eopenid&title=yii-eopenid&language=en_GB&tags=github&category=software)

###Resources
* [InDaHouseRulez SL](http://www.indahouserulez.com)
* [OpenID](http://openid.net/)
* [LightOpenID](http://gitorious.org/lightopenid)

##Documentation

###Requirements
* Yii 1.0 or above

###Installation
* Extract the release file under `protected/components`

###Usage
The action:

~~~
[php]

public function actionOpenIDLogin() {
$openid=new EOpenID;

if(!isset($_GET['openid_mode'])) {
if(isset($_POST['openid_identifier'])) {
$openid->authenticate($_POST['openid_identifier']);
}
}
elseif(isset($_GET['openid_mode'])) {
$openid->validate();
Yii::app()->user->login($openid);
}

$this->render('openIDLogin',array('openid'=>$openid));
}

~~~

The view:

~~~
[php]



40)); ?>


Hint: You may login with https://www.google.com/accounts/o8/id.




~~~

License
---------
Some time ago I developed this extension for [InDaHouseRulez SL](http://www.indahouserulez.com). I no longer work there, but I still support the extension.

The extension was released under the [MIT license](http://www.opensource.org/licenses/mit-license.php), so I made a fork on [GitHub](https://github.com), where you'll find the latest version:

[https://github.com/jorgebg/yii-eopenid](https://github.com/jorgebg/yii-eopenid)

##Change Log

###November 2, 2010
* Updated to new LightOpenID version 0.3 (thanks [hightman](http://www.yiiframework.com/forum/index.php?/topic/12727-eopenid-and-lightopenid-03/page__view__findpost__p__62429))

###July 27, 2010
* Initial release.

###July 28, 2010
* Renamed as EOpenID.
* PHP5 object constructor.