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
<? php $config = array ( "base_url" => "http://mywebsite.com/path/to/hybridauth/" , "providers" => array ( "Yahoo" => array ( "enabled" => true , "keys" => array ( "id" => "PUT_YOURS_HERE" , "secret" => "PUT_YOURS_HERE" ), "scope" => [ 'sdct-r' , 'fspt-r' , 'mail-r' , 'sdps-r' ], // optional ), ), ); require_once ( "/path/to/hybridauth/Hybrid/Auth.php" ); $hybridauth = new Hybrid_Auth ( $config ); $adapter = $hybridauth -> authenticate ( "Yahoo" ); $user_profile = $adapter -> getUserProfile ();
For Yahoo you can configure several extra options:
Registering application
Go to https://developer.yahoo.com/apps and create
a new application by clicking "Create an App".
Fill out any required fields such as the Application Name.
Specify the domain to which your application will be returning after successfully authenticating. (i.e.
http://mywebsite.com/path_to_hybridauth
)
Select private user data APIs that your application needs to access.
Once you have registered, copy and past the created application credentials (App ID and Secret) into the
HybridAuth config file .
HybridAuth Open Source PHP Social Sign On Library, © 2009-2015.
Code licensed under dual licence MIT and GPLv3 , documentation under CC BY 4.0 .
HybridAuth website was made using Bootstrap and jQuery . Project hosting provided by Github .