Yahoo for Spring Security OAuth plugin

1 vote
Dependency :
compile ":spring-security-oauth-yahoo:0.1"

Documentation Source

Summary

Installation

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

Description

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>