Since we are now using a hybrid auth approach, we need to create an OAuth application with the provider of our choice (in this case, Yahoo!) to obtain the required OAuth consumer and secret keys.
For this example, we will follow these steps to set up a new OAuth application through the Yahoo! Developer Network (YDN):
Go to https://developer.apps.yahoo.com/projects to see your current YDN projects.
Click the New Project button at the top of your project listing.
In the screen that comes up, select the option for a standard OAuth application, not a YAP (Yahoo! Application Platform) application.
You will be presented with a blank application form asking you to fill in details about your application. Enter the data, ensuring that the application URL and domain match the location where the hybrid auth code will be running from.
Under Access Scopes, select “This app requires access to private user data” to indicate that we want to capture privileged user information. There are several personal information scopes that you can select, but for this example we require only read access to Profiles within the Social Directory section.
Click to agree to the terms of service and then click the button to get your API key. Unless you previously verified the domain, you might now have to go through a verification step. Simply follow the instructions on screen.
Once verification is complete, you will be presented with the consumer key ...