Plugins You can find out about all the publicly available Grails plugins.

Yahoo for Spring Security OAuth plugin

1 vote
compile "org.grails.plugins:spring-security-oauth-yahoo:0.2"

 Documentation  Source  Issues



Add the following to your grails-app/conf/BuildConfig
plugins {
	compile ':spring-security-oauth-yahoo:0.1'


Add to your Config:
oauth {
  providers {
    yahoo {
      api = org.scribe.builder.api.YahooApi
      key = 'oauth_yahoo_key'
      secret = 'oauth_yahoo_secret'
      successUri = '/oauth/yahoo/success'
      failureUri = '/oauth/yahoo/error'
      callback = "${baseURL}/oauth/yahoo/callback"

In your view you can use the taglib exposed from this plugin and from OAuth plugin to create links and to know if the user is authenticated with a given provider:

<oauth:connect provider="yahoo" id="yahoo-connect-link">Yahoo</oauth:connect>

Logged with yahoo? <s2o:ifLoggedInWith provider="yahoo">yes</s2o:ifLoggedInWith> <s2o:ifNotLoggedInWith provider="yahoo">no</s2o:ifNotLoggedInWith>