-
Notifications
You must be signed in to change notification settings - Fork 0
Kohana v3 integration with rpxnow widget
marcobarbosa/kohana-rpxnow
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 0
No packages published