aiten/grails-oauth-scribe — Issue #1: Unsupported operation, please use 'getAuthorizationUrl' and redirect your users there
Author: thedivrox
Created: 2011-12-22 21:05:57+00:00
State: open

In my Config.groovy:

environments {
development {
grails.logging.jul.usebridge = true
grails.serverURL = "http://localhost:8080/${appName}"
}
}

oauth {
provider = org.scribe.builder.api.FacebookApi
key = '160402534019647'
secret = 'f8.......12' <= my real secret key in my actual Config.groovy
callback = "${grails.serverURL}/oauth/callback"
successUri = '/Theauth/success' <= this exists
failureUri = '/Theauth/failed' <= this exists also
}

This looks like an OAuth 1.0 vs. OAuth 2.0 issue...
Any hints/help would be greatly appreciated.
=============================

Error 500: Internal Server Error

URI
/O1/oauth/authenticate
Class
java.lang.UnsupportedOperationException
Message
Unsupported operation, please use 'getAuthorizationUrl' and redirect your users there

Around line 96 of grails-app\services\uk\co\desirableobjects\oauth\scribe\OauthService.groovy

93:94: Token getRequestToken() {95:96: return service.requestToken97:98: }99:

Around line 43 of grails-app\controllers\uk\co\desirableobjects\oauth\scribe\OauthController.groovy

40: // TODO: I don't like how this uses the session41: def authenticate = {42:43: Token requestToken = oauthService.requestToken44: session[OauthService.REQUEST_TOKEN_SESSION_KEY] = requestToken45: String url = oauthService.getAuthorizationUrl(requestToken)46:

Trace

Line | Method
->> 45 | getRequestToken in org.scribe.oauth.OAuth20ServiceImpl
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 96 | getRequestToken in OauthService.groovy
| 43 | doCall . . . . in OauthController.groovy
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run . . . . . . in ''
^ 662 | run in java.lang.Thread