grails-oauth-scribe icon indicating copy to clipboard operation
grails-oauth-scribe copied to clipboard

not saving access token in session

Open westlakem opened this issue 9 years ago • 1 comments

After making my request this is what's in the session

Session Content: org.codehaus.groovy.grails.FLASH_SCOPE = org.codehaus.groovy.grails.web.servlet.GrailsFlashScope@2dd733e4 intuit:oasRequestToken = Token[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx , yyyyyyyyyyyyyyyyyyyyyy]

(with actual values where 'xxxxxxxxx' and 'yyyyyy' are)

According to the documentation, I need the authorization token not the request token to access my website again, and I feel that's the case because when I try to make the request using the above token, I get a 401 unauthorized message.

Here is the response from my connection request: response status code: 200 response body: oauth_token_secret=yyyyyyyyyyyyyyyyyy&oauth_callback_confirmed=true&oauth_token=xxxxxxxxxxxxxxxxxxxxxxx

westlakem avatar Nov 22 '15 23:11 westlakem

I've got the same error. After hours of invistigation I found that new web session was created somewere between redirects. In my case the domain used for a testing was rewrited to localhost. I fixed it by updating successUri and failureUri in Oauth config to the absolute paths. Hope this help you too.

oleg-baskakov avatar Jan 19 '19 13:01 oleg-baskakov