나는 이것을 꽤 오랫동안 해왔다. 요청 토큰을 아무 문제없이 가져올 수 있습니다. 나는 다음과 같은 오류 얻을 액세스 토큰으로 교환하려고 할 때 : 여기Grails oauth 플러그인을 사용하여 액세스 토큰을 가져올 수 있습니까?
2011-07-17 22:19:19,649 [http-8080-1] ERROR oauth.OauthService - Unable to fetch access token! (consumerName=google, requestToken=[key:4/Azm6wQDW85iYVmeb4ogCAl70D_89, secret:Zrh9saEDJcgCo83QejOu28sU, authUrl:https://www.google.com/accounts/OAuthAuthorizeToken?oauth_token=4%2FAzm6wQDW85iYVmeb4ogCAl70D_89, isOAuth10a:true]) oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: Service provider responded in error: 400 (Bad Request
를 컨트롤러에 코드입니다 :
def OauthService
if (session.oauthToken == null) {
flash.message = "The token could no be retrieved... Please try again"
redirect(uri:"/")
}
def requestToken = OauthService.fetchRequestToken('google')
def accessToken = OauthService.fetchAccessToken('google', requestToken)
내가 그것에 대해 재생되고는 있지만, 결코 보인다 내가하는 일을하는 방법. 아무도 아이디어가 있니?