다소 희미한 지침을 제공 한 클라이언트와 협력하고 있습니다. 이와 URL의 형태로되어푯말이있는 OAuts - 액세스 토큰을 얻기 위해 POST에 서명하는 방법
String requestToken = provider.retrieveRequestToken
(OAuth.OUT_OF_BAND);
: 여기에 내가이 일에서 응답 토큰을 얻을 수있어
(
CommonsHttpOAuthConsumer
로 소비자와 공급자로DefaultOAuthProvider
사용)하고있어 무엇 그래서 예를 들어 밖으로 실제 토큰 분석하고 있습니다 PARAMS : 이제https://foobar.com/oauth/login_authorize?oauth_token=XRFCGPbES3M2bYZy...
를 - 내가 얻을 지침 말 :
Given the request token obtained in step 1, login with the user’s credentials (name and password) as POST parameters and sign the request with the request token/secret POST https://foobar.com/oauth/login_authorize
이것이 제가 어려움을 느끼고있는 곳입니다. 그것은 작동하지 않습니다
consumer.setTokenWithSecret(requestToken, SECRET);
consumer.sign(post);
: 물론 나는이 작업을 수행 할 수 있도록 이 (post
사용자 자격 증명을 HttpPost 포함되는) 곳 requestToken 것을 입력해야합니다. 그것은 실제로 200 상태를 생성하지만 내가 얻는 것은 일반 오류 메시지입니다.