Adapter capabilities

 User authenticationYES
 User profileYES
 User contacts listNO
 Post to user wall / update statusNO
 Access provider APINO

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:

  1. <?php
  2. require_once( "/path/to/hybridauth/Hybrid/Auth.php" );
  3.  
  4. // Enabel OpenID adapter on Hybrid_Auth config
  5. $config = array(
  6. "base_url" => "http://mywebsite.com/path/to/hybridauth/",
  7. "providers" => array ( "OpenID" => array ( "enabled" => true ) )
  8. );
  9.  
  10. $ha = new Hybrid_Auth( $config );
  11.  
  12. // Authenticate with Yahoo! then grab the user profile
  13. $adapter = $ha->authenticate( "OpenID", array( "openid_identifier" => "https://yahoo.com/"));
  14. $user_profile = $adapter->getUserProfile();