Я использую DotNetOpenAuth 3.4.7 с действительным ключом пользователя и секретом. Когда я пытаюсь войти с помощью твиттера на локальном хосте (\ Samples \ OAuthConsumer \ SignInWithTwitter.aspx), происходит сбой со следующим исключением.
The remote server returned an error: (401) Unauthorized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote server returned an error: (401) Unauthorized.
Source Error:
Line 190: }
Line 191: Uri callback = MessagingUtilities.GetRequestUrlFromContext().StripQueryArgumentsWithPrefix("oauth_");
Line 192: var request = TwitterSignIn.PrepareRequestUserAuthorization(callback, null, redirectParameters);
Line 193: return TwitterSignIn.Channel.PrepareResponse(request);
Line 194: }
Source File: C:\Users\Andrey\Downloads\DotNetOpenAuth-3.4.7.11121\DotNetOpenAuth-3.4.7.11121\Samples\DotNetOpenAuth.ApplicationBlock\TwitterConsumer.cs Line: 192
Последнее обновление TwitterConsumer - 07 марта 2010 г. (https://github.com/AArnott/dotnetopenid/blob/v3.4/samples/DotNetOpenAuth.ApplicationBlock/TwitterConsumer.cs)
).
Этот образец еще жив?