If (WebSecurity.UserExists(email) & WebSecurity.GetPasswordFailuresSinceLastSuccess(email) > 4 & WebSecurity.GetLastPasswordFailureDate(email).AddSeconds(60) > DateTime. OAuthWebSecurity.RequestAuthentication(provider, Href("~/Account/RegisterService", new )) For that: Drag down the notifications panel and click on the Settings button. Therefore, in this step, we will be clearing the cached data so that it can be recreated. If this is a POST request, validate and process data Solution 1: Clearing Cache If the cached data for the application has been corrupted it might face issues during the launching process. Validation.RequireField("password", "You must specify a password.") ĮrrorMessage: "Password must be at least 6 characters")) Validation.RequireField("email", "You must specify an email address.") Some external login providers always require a return URL value Here's the current code: var returnUrl = Request.QueryString Working without the 'enhanced redirection' switch off, but still fails with it on. consumer, etc)Ĭ# settings in app_start: OAuthWebSecurity.RegisterMicrosoftClient(ĬlientSecret: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx") Īpp settings at /developer: Site uses DotNetOpenAuth libraries (.core. I've read the proceedure on getting 'localhost' to workīut i've gone beyond that using the real domain locally. They site isn't available to the public yet (is that a problem, if so why does it work with everyone esle?) but like i said, I have my host file set and am using the full IIS7.5. Googled this error and have got a few results but nothing that would fix I set up my live app as best it could and have double checked everything. No problem setting up Facebook's oauth login (it too requires a return url). I'm easily able to debug while coding in the IDE with httpsĪnd everything. I've gotten all of them to work except for the Live login.īackground: I'm using VS2012 with IIS7.5 setup with my domain () and a SANcert installed and the host file pointed to my local IIS. The previous developer had oAuthsetup for Live, Facebook, Twitter, LinkedIn, and Google+, but with test accounts. I'm not entirely familiar with coding oAuth, but I get the concept and it's all fairly basic c# so no real problems there. I've got a razor website that was dropped on my desk from a group of outside contractors and I'm trying to finish it up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |