Adapter capabilities

 User authentication YES
 User profile YES
 User contacts list YES
Post to user wall / update status NO
 Access provider API YES

Adapter specifications

 ID Yahoo
 Protocol OAuth 2
 IDp URL https://www.yahoo.com
 Keys registration https://developer.yahoo.com/apps
 Dev documentation https://developer.yahoo.com/oauth2/guide
 Wrapper ./Hybrid/Providers/Yahoo.php
Callback URL http://mywebsite.com/path_to_hybridauth

Configuration & Usage

  1. <?php
  2. $config = array(
  3. "base_url" => "http://mywebsite.com/path/to/hybridauth/",
  4. "providers" => array(
  5. "Yahoo" => array(
  6. "enabled" => true,
  7. "keys" => array("id" => "PUT_YOURS_HERE", "secret" => "PUT_YOURS_HERE"),
  8. "scope" => ['sdct-r', 'fspt-r', 'mail-r', 'sdps-r'], // optional
  9. ),
  10. ),
  11. );
  12.  
  13. require_once( "/path/to/hybridauth/Hybrid/Auth.php" );
  14.  
  15. $hybridauth = new Hybrid_Auth( $config );
  16.  
  17. $adapter = $hybridauth->authenticate( "Yahoo" );
  18.  
  19. $user_profile = $adapter->getUserProfile();

For Yahoo you can configure several extra options:

Registering application

  1. Go to https://developer.yahoo.com/apps and create a new application by clicking "Create an App".
  2. Fill out any required fields such as the Application Name.
  3. Specify the domain to which your application will be returning after successfully authenticating. (i.e. http://mywebsite.com/path_to_hybridauth)
  4. Select private user data APIs that your application needs to access.
  5. Once you have registered, copy and past the created application credentials (App ID and Secret) into the HybridAuth config file.