I am back with a new OAuth blog, topic: Integration with Yahoo using Grails OAuth Plugin.

So far, we have successfully integrated various OAuth providers in our application: 😎

  • Facebook
  • Google (OAuth 1.0)
  • Google (OAuth 2.0)
  • LinkedIn
  • Twitter

Let’s try one more OAuth provider, Yahoo.

Goal: Integrate with Yahoo using Grails OAuth plugin and get the user details.

Step 1: Install the OAuth plugin

Open BuildConfig.groovy and add the following dependency inside plugins section:

Step 2: Sign up as Yahoo developer and create a new application

Go to the link and complete the application form. After successfully creating the app you got the Consumer Key and Consumer Secret.

Step 3: Add Config values in Config.groovy

Add following code in you Config file:

Step 4: Add Yahoo link in your page

Add oauth:connect tag of OAuth plugin tag library to create a link to Yahoo.

Step 5: Add handler for Yahoo response

Final step is to create action to handle the response returned by the Yahoo after successful authentication then make request to get the user details.

and you are done, enjoy..,. 🙂


I have deployed a demo project in Heroku.
See this code in action (DEMO).


Hope this helps. 🙂