Adapter capabilities
User authentication | YES |
User profile | YES |
User contacts list | NO |
Post to user wall / update status | NO |
Access provider API | NO |
Adapter specifications
ID |
OpenID |
Protocol |
OpenID |
IDp URL |
http://openid.net/ |
Keys registeration |
NOT NEEDED |
Dev documentation |
http://openid.net/developers/ |
Based on |
LightOpenID http://gitorious.org/lightopenid |
Version |
2.0 |
Since |
HybridAuth 1.0.1 |
Wrapper |
./Hybrid/Providers/OpenID.php |
Callback URL |
http://mywebsite.com/path_to_hybridauth/?hauth.done=OpenID |
Synopsis
To be able to authentificates users, HybridAuth OpenID adapter will require some needed extra parameters:
openid_identifier |
The OpenID identity provider identifier |
Expample:
- <?php
- require_once( "/path/to/hybridauth/Hybrid/Auth.php" );
-
- // Enabel OpenID adapter on Hybrid_Auth config
- $config = array(
- "base_url" => "http://mywebsite.com/path/to/hybridauth/",
- "providers" => array ( "OpenID" => array ( "enabled" => true ) )
- );
-
- $ha = new Hybrid_Auth( $config );
-
- // Authenticate with Yahoo! then grab the user profile
- $adapter = $ha->authenticate( "OpenID", array( "openid_identifier" => "https://yahoo.com/"));
- $user_profile = $adapter->getUserProfile();