Permalink
Browse files

Real support for RESTful responses courtesy of aiten.

  • Loading branch information...
2 parents 6b76bf7 + 59382be commit 2b61b88271499318a1312d537e45b9f344838ab9 Anthony Campbell committed Aug 28, 2011
@@ -0,0 +1,13 @@
+target
+web-app
+grails-app/taglib
+grails-app/conf/Config.groovy
+out
+.classpath
+.settings
+plugin.xml
+*.zip
+*.iml
+*.iws
+*.ipr
+.idea
@@ -3,10 +3,14 @@ Version 0.12
Potential improvements:
- Unit test coverage.
- Split OauthServiceException.
+- OAuth 2.0 support.
-Release notes 0.12 (TBA)
+Release notes 0.13 (TBA)
-
-
+
+Release notes 0.12 (28th August, 2011)
+- Allowed proper handling of RESTful responses.
+
Release notes 0.11 (19th August, 2011)
- Fixed broken getProvider method.
@@ -16,24 +16,20 @@
*/
class OauthGrailsPlugin {
- def version = "0.12" // added by set-version
+
+ def version = 0.12
def dependsOn = [:]
-
- // TODO Fill in these fields
def author = "Yong Rong (Damien) Hou, Anthony Campbell"
- def authorEmail = "houyongr@gmail.com, acampbell3000 [[at] googlemail [dot]] com"
+ def authorEmail = "houyongr [[at] gmail [dot]] com, acampbell3000 [[at] gmail [dot]] com"
def title = "Adds OAuth capability to Grails apps"
- def description = '''\
- This plugin wraps up the OAuth Java implementation and provides out-of-the-box
- OAuth functionality for Grails appplications.
- '''
+ def description = '''Wraps up the Signpost OAuth Java implementation and provides out-of-the-box
+ OAuth functionality for Grails appplications.'''
- // URL to the plugin's documentation
def documentation = "http://www.grails.org/plugin/oauth"
def onConfigChange = { event ->
- // Config change, need to reset the OauthService
final def oauthService = event?.ctx?.getBean("oauthService")
oauthService?.reset()
}
+
}
@@ -22,14 +22,11 @@ grails.project.dependency.resolution = {
repositories {
grailsPlugins()
grailsHome()
+ mavenLocal()
mavenCentral()
-
- // Custom repo for OAuth
- mavenRepo "http://oauth.googlecode.com/svn/code/maven"
}
dependencies {
- //runtime 'net.oauth:oauth-core:20090531'
runtime 'oauth.signpost:signpost-core:1.2.1.1'
runtime 'oauth.signpost:signpost-commonshttp4:1.2.1.1'
}
@@ -16,9 +16,8 @@ package org.grails.plugins.oauth
* limitations under the License.
*/
-import org.codehaus.groovy.grails.commons.ConfigurationHolder as C
-
class OauthController {
+
def oauthService
/**
@@ -72,7 +71,6 @@ class OauthController {
*/
def callback = {
log.debug "Callback received..."
-
log.debug "Got callback params: $params"
// List session parameters
Oops, something went wrong.

0 comments on commit 2b61b88

Please sign in to comment.