Пробата на DotNetOpenAuth SignInWithTwitter не работи

Използвам DotNetOpenAuth 3.4.7 с валиден потребителски ключ и тайна. Когато се опитам да вляза с twitter на localhost (\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)

Тази проба още ли е жива?


person kolbasov    schedule 27.09.2011    source източник


Отговори (1)


Това е моя грешка. Не посочих URL адреса за обратно извикване в профила на приложението.

person kolbasov    schedule 28.09.2011
comment
Имам същия проблем? Посочвам URL адреса за обратно извикване, но все още получавам тази грешка? - person leen3o; 13.04.2013