O'Reilly logo

Programming Social Applications by Jonathan LeBlanc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Application Setup: Getting Your OAuth Keys for the Hybrid Auth Process

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):

  1. Go to https://developer.apps.yahoo.com/projects to see your current YDN projects.

  2. Click the New Project button at the top of your project listing.

  3. In the screen that comes up, select the option for a standard OAuth application, not a YAP (Yahoo! Application Platform) application.

  4. 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.

  5. 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.

  6. 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.

  7. Once verification is complete, you will be presented with the consumer key ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required