Skip to content

marcobarbosa/kohana-rpxnow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This module is working!

RPX Overview
============
Working as a proxy between third party identity providers and your website, RPX helps you effortlessly authenticate users with their existing account on Facebook, Google, Yahoo!, Twitter, MySpace, AOL, Windows Live/MSN/Hotmail, or any other OpenID provider.

How to use
============
1) Install the module by adding in your bootstrap file:
'rpxnow'  => MODPATH.'rpxnow', // rpxnow openid authentication

2) Change your information provided by rpx in init.php

3) In your view, call the helpers provided by the module (script and iframe/anchor)
Script must be called and you choose if you'd like an iframe or anchor:
// login.php
<?php echo rpxnow::rpxnow_script_tag(); ?>
<?php echo rpxnow::rpxnow_iframe_tag(); ?>

4) To make the authentication, call in your controller openid_auth():
function action_response()
{
        $openid = new Rpxnow;
        $result = $openid->openid_auth();
        if($result['stat'] == 'ok')
        {
            $this->authenticate($result['profile']);
            // profile will give you information such as verifiedEmail, gender, name, etc..
            // var_dump($result['profile'])
        }
        else
        {
            // handle the error
        }
}

5) The authentication should be working now. Now you must do your backend session by saving the 'identifier' in a table

Suggestions are welcome, just message me on github.
For issues, just create one ;)

About

Kohana v3 integration with rpxnow widget

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages