dotnetopenauth

DotNetOpenId — “This message has already been processed” Error (Part 2)

孤人 提交于 2019-12-22 05:19:20
问题 This has already been asked Here, but not by me and the OP accepted an answer which did not help me. Thus far, I've tried logging in from different browsers, changing the web config, clearing cookies, and loading from an external machine. In fact, I eventually did discover that the problem is specific to my own machine; when I published to another machine, it worked fine. Any suggestions for where to look for solutions? I deliberately used the simplest test code I could think of, a clean

OAuthWebSecurity.VerifyAuthentication IsSuccessful returns false how do I to determine the reason?

元气小坏坏 提交于 2019-12-22 05:07:31
问题 I'm using DotNetOpenAuth with a MVC 4 application. All the sudden Google auth is failing (MS is working). The stock code does this: [AllowAnonymous] public ActionResult ExternalLoginCallback(string returnUrl) { var result = OAuthWebSecurity.VerifyAuthentication(Url.Action("ExternalLoginCallback", new { ReturnUrl = returnUrl })); if (!result.IsSuccessful) { return RedirectToAction("ExternalLoginFailure"); } I know that result.IsSuccessful is false, but how do I get the reason? result.Error is

Where is the source for DotNetOpenAuth? The primary Sourceforge link contains just samples and the ApplicationBlock

坚强是说给别人听的谎言 提交于 2019-12-22 04:36:11
问题 Now that DNOA may do Call Home Reporting I want to investigate the source to see exactly what is being transmitted to the DNOA servers. The link on Source Forge only gives me the "Application Block" some samples, and a compiled DLL. Where is the source? Am I just overlooking it? 回答1: The DotNetOpenAuth home page has a link directly to the source code. You can download it by clicking the Download button once you're there. Since you've expressed interested in downloading the source code for

FormsAuthentication object obsolete [using MVC5]

牧云@^-^@ 提交于 2019-12-21 03:43:20
问题 I'm using the following code in an MVC5 site: [HttpPost] [ValidateAntiForgeryToken] public ActionResult Login(LoginModel loginModel) { if (ModelState.IsValid) { var authenticated = FormsAuthentication.Authenticate(loginModel.UserName, loginModel.Password); if (authenticated) { FormsAuthentication.SetAuthCookie(loginModel.UserName, true); return RedirectToAction("AdminPanel"); } ModelState.AddModelError("", "The username and password combination were incorrect"); } return View(loginModel); }

DotNetOpenAuth and C# desktop application

风流意气都作罢 提交于 2019-12-21 02:46:12
问题 I'm using DotNetOpenAuth (http://dotnetopenauth.net/) library to authenticate at linkedIn.com. I develop a desktop application and now I'm a little confused. I'm unaware if it's possible to authenticate using a desktop application. Does anybody know? If it's possible please show me how to do that. 回答1: Yes, it depends on how you want to approach it, but maybe looking at the DesktopConsumer class in the API might point you in the right direction: http://docs.dotnetopenauth.net/v3.4/html/T

MembershipCreateUserException - The username supplied is invalid

守給你的承諾、 提交于 2019-12-20 23:28:33
问题 On this line i am getting an exception - OAuthWebSecurity.CreateOrUpdateAccount(provider, providerUserId, model.UserName); System.Web.Security.MembershipCreateUserException: The username supplied is invalid. The data going into this is provider - "facebook" providerUserId - "1321311387573991" model.UserName - "Max Payne" The initialization works fine using WebSecurity.InitializeDatabaseConnection("club", "User", "UserID", "UserName", autoCreateTables: true); I cannot find any examples of why

Where are tutorials for DotNetOpenAuth and how to solve compile error in its samples

[亡魂溺海] 提交于 2019-12-20 18:36:20
问题 I know stackoverflow uses OpenID authentication. I want to try and use this as well. I am using asp.net mvc 2.0 with C#. I found this http://www.dotnetopenauth.net/ and I am wondering if this is what was used for stackoverflow. Also any tutorials would be nice as well. Edit I am trying to load up some sample projects but when I build it in VS2010 I get Error 6 'System.Diagnostics.Contracts.ContractInvariantMethodAttribute' is inaccessible due to its protection level C:\Users\chobo2\Downloads

On what .NET Framework(s) is DotNetOpenAuth available?

旧时模样 提交于 2019-12-20 17:29:38
问题 Most (all?) OAuth resources - both information about the protocol and code libraries for easily using them in your own applications - one seems to find on the internet seem to assume the application you are using it in is a web application. I would however like to start using OAuth in my windows mobile Twitter client for interactions with Twitter where I now use Basic Authentication through a set of simple methods I hand rolled. If I'm correct, Basic Authentication is about to be deprecated

Implementing .Net OpenId with ASP.Net MVC

淺唱寂寞╮ 提交于 2019-12-20 11:32:05
问题 The sample I downloaded from DotNetOpenId has different files than the MVC 1.0 application I get when I create a new application. I am new to MVC and openId, all the examples I have come across are very old. Can anyone point me to examples of implementing Openid with ASP.net MVC using DotNetOpenId. 回答1: Rob Conery has a template available for MVC that has DotNetOpenId already configured and ready to go. Available at: http://blog.wekeroad.com/blog/putting-the-ldquo-m-rdquo-back-in-mvc/ 来源:

Implementing .Net OpenId with ASP.Net MVC

[亡魂溺海] 提交于 2019-12-20 11:31:09
问题 The sample I downloaded from DotNetOpenId has different files than the MVC 1.0 application I get when I create a new application. I am new to MVC and openId, all the examples I have come across are very old. Can anyone point me to examples of implementing Openid with ASP.net MVC using DotNetOpenId. 回答1: Rob Conery has a template available for MVC that has DotNetOpenId already configured and ready to go. Available at: http://blog.wekeroad.com/blog/putting-the-ldquo-m-rdquo-back-in-mvc/ 来源: