Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Yahoo support for Grails Spring Security OAuth
Shell Groovy
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
grails-app
src/groovy/grails/plugin/springsecurity/oauth
wrapper
.travis.yml
LICENSE
README.md
SpringSecurityOauthYahooGrailsPlugin.groovy
application.properties
grailsw
grailsw.bat

README.md

grails-spring-security-oauth-yahoo Build Status

Yahoo extension for Grails Spring Security OAuth plugin

Installation

Add the following plugin definition to your BuildConfig:

// ...
plugins {
  // ...
  compile ':spring-security-oauth:2.0.2'
  compile ':spring-security-oauth-yahoo:0.1'
  // ...
}

Usage

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>

Copyright and license

Copyright 2012-2014 Mihai Cazacu, Enrico Comiti and Alexey Zhokhov under the Apache License, Version 2.0. Supported by Polusharie.

Something went wrong with that request. Please try again.