서버에서 좋은 oauth_verifier 값을 수신했지만 ProcessUserAuthorization
access_token 엔드 포인트를 통해 전달되지 않습니다.oauth_verifier가 DotNetOpenAuth의 웹 컨스 롤러를 사용하여 전달되지 않았습니다.
저는 DotNetOpenAuth 3.3.1 및 WebConsumer 구현을 사용하고 있습니다. 내가 사용하고있는 서버가 1.0.1이 아닌 OAuth 1.0a를 사용하고 있습니다.
1.0a를 사용하려면 DotNetOpenAuth를 강제로 수행해야합니까? 로그를 보면
2010-01-16 13:19:44,343 [5] DEBUG DotNetOpenAuth.Messaging.Channel [(null)] <(null)> - After binding element processing, the received UserAuthorizationResponse (1.0.1) message is:
oauth_verifier: dEz9lE9AA1gcdr6oCbmD
oauth_token: vauHNVOCITlbGCuqycWn
2010-01-16 13:19:44,346 [5] DEBUG DotNetOpenAuth.Messaging.Channel [(null)] <(null)> - Preparing to send AuthorizedTokenRequest (1.0) message.
2010-01-16 13:19:44,346 [5] DEBUG DotNetOpenAuth.Messaging.Bindings [(null)] <(null)> - Binding element DotNetOpenAuth.OAuth.ChannelElements.OAuthHttpMethodBindingElement applied to message.
2010-01-16 13:19:44,346 [5] DEBUG DotNetOpenAuth.Messaging.Bindings [(null)] <(null)> - Binding element DotNetOpenAuth.Messaging.Bindings.StandardReplayProtectionBindingElement applied to message.
2010-01-16 13:19:44,346 [5] DEBUG DotNetOpenAuth.Messaging.Bindings [(null)] <(null)> - Binding element DotNetOpenAuth.Messaging.Bindings.StandardExpirationBindingElement applied to message.
2010-01-16 13:19:44,346 [5] DEBUG DotNetOpenAuth.Messaging.Channel [(null)] <(null)> - Applying secrets to message to prepare for signing or signature verification.
2010-01-16 13:19:44,348 [5] DEBUG DotNetOpenAuth.Messaging.Bindings [(null)] <(null)> - Signing AuthorizedTokenRequest message using HMAC-SHA1.
2010-01-16 13:19:44,349 [5] DEBUG DotNetOpenAuth.Messaging.Bindings [(null)] <(null)> - Constructed signature base string: GET&http%3A%2F%2Fx-staging.indivo.org%3A8000%2Foauth%2Faccess_token&oauth_consumer_key%3Doak%26oauth_nonce%3DgPersiZV%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1263676784%26oauth_token%3DvauHNVOCITlbGCuqycWn%26oauth_version%3D1.0
2010-01-16 13:19:44,349 [5] DEBUG DotNetOpenAuth.Messaging.Bindings [(null)] <(null)> - Binding element DotNetOpenAuth.OAuth.ChannelElements.SigningBindingElementChain applied to message.
2010-01-16 13:19:44,351 [5] INFO DotNetOpenAuth.Messaging.Channel [(null)] <(null)> - Prepared outgoing AuthorizedTokenRequest (1.0) message for http://x-staging.indivo.org:8000/oauth/access_token:
oauth_token: vauHNVOCITlbGCuqycWn
oauth_consumer_key: XXXXXXmyComsumerKeyXXXXXX
oauth_nonce: gPersiZV
oauth_signature_method: HMAC-SHA1
oauth_signature: xNynvr2oFlqtdoOKOl2ETiiTLGY=
oauth_version: 1.0
oauth_timestamp: 1263676784
2010-01-16 13:19:44,351 [5] DEBUG DotNetOpenAuth.Messaging.Channel [(null)] <(null)> - Sending AuthorizedTokenRequest request.
2010-01-16 13:19:44,351 [5] DEBUG DotNetOpenAuth.Http [(null)] <(null)> - HTTP GET http://x-staging.indivo.org:8000/oauth/access_token
2010-01-16 13:20:34,657 [5] ERROR DotNetOpenAuth.Http [(null)] <(null)> - WebException from http://x-staging.indivo.org:8000/oauth/access_token:
<h4>Internal Server Error</h4>
A pastebin link to the log4net log
log4net 로그를 포함 할 수 있습니까? 그 과정이 어떻게 진행되고 있는지 알 수 있습니까? –
@Andrew, 로그 파일 링크를 읽을 수없는 경우 알려주십시오. 내가 이해하기 때문에 oauth_verifier가 AccessTokenEndpoint에 전달되었지만 서버가 보이지 않는다. – BozoJoe
DotNetOpenAuth는 지원하지 않는 Version 개체를 사용하기 때문에 1.0.1을 1.0.1로 사용한다. 버전의 글자이므로 문제가되지 않습니다. –