dotnetopenauth

DotNetOpenAuth causing a can not load Assembly System.Web.WebPages.Razor

安稳与你 提交于 2019-12-02 02:25:59
问题 My local version of my code runs just fine. But when I do a web deploy I am getting the following exception: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) The relevant stack trace line is [FileLoadException: Could not load file or assembly 'System.Web.WebPages.Razor,

DotNetOpenAuth causing a can not load Assembly System.Web.WebPages.Razor

情到浓时终转凉″ 提交于 2019-12-01 23:03:13
My local version of my code runs just fine. But when I do a web deploy I am getting the following exception: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) The relevant stack trace line is [FileLoadException: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The

Migrating from Google OpenID to new OAuth 2

丶灬走出姿态 提交于 2019-12-01 06:34:00
I see that there are some questions about this already but none that i found goes into any details. I have using my own code from DotNetOpenAuth before but now i decided to switch over to the Microsoft Wrapper for Authentication. Anyways i found this really good OAuth Client: https://github.com/mj1856/DotNetOpenAuth.GoogleOAuth2 It seems to work fine but now it come to the migration part. In my current login system i save the full OpenID URL that Google returns that are in the form of: https://www.google.com/accounts/o8/id?id= ???????????????????????????????????? According to the documentation

Migrating from Google OpenID to new OAuth 2

a 夏天 提交于 2019-12-01 05:19:43
问题 I see that there are some questions about this already but none that i found goes into any details. I have using my own code from DotNetOpenAuth before but now i decided to switch over to the Microsoft Wrapper for Authentication. Anyways i found this really good OAuth Client: https://github.com/mj1856/DotNetOpenAuth.GoogleOAuth2 It seems to work fine but now it come to the migration part. In my current login system i save the full OpenID URL that Google returns that are in the form of: https:

Html.OpenIdSelectorScripts helper method throwing NullReferenceException

社会主义新天地 提交于 2019-12-01 05:19:26
I keep getting this error when trying to navigate to my LogOn page: System.NullReferenceException: Object reference not set to an instance of an object The line of code that is throwing the error on is: <%= Html.OpenIdSelectorScripts(this, options, null)%>. Does anyone know why this line of code would be throwing an error? Have a look at this link: Gougle-Groups/DotNetOpenAuth : "I suspect though that you're missing the OpenIdDiscover named route in your global.asax.cs file." 来源: https://stackoverflow.com/questions/4138534/html-openidselectorscripts-helper-method-throwing

Html.OpenIdSelectorScripts helper method throwing NullReferenceException

允我心安 提交于 2019-12-01 03:26:23
问题 I keep getting this error when trying to navigate to my LogOn page: System.NullReferenceException: Object reference not set to an instance of an object The line of code that is throwing the error on is: <%= Html.OpenIdSelectorScripts(this, options, null)%>. Does anyone know why this line of code would be throwing an error? 回答1: Have a look at this link: Gougle-Groups/DotNetOpenAuth: "I suspect though that you're missing the OpenIdDiscover named route in your global.asax.cs file." 来源: https:/

How do I retrieve google profile with DotNetOpenAuth?

限于喜欢 提交于 2019-12-01 01:09:08
I am trying to use DNOA for OpenId support to my app, in order to leave the Janrain solution I have been using so far. The problem is that the users I have so far have profile based identifiers (https://www.google.com/profiles/11223344556677... ), while the identifier retrieved by DNOA is in the form https://www.google.com/accounts/o8/id?id=xxxxxyyyyyafgsdgfsdhg . How do I retrieve the profile information? Through Attribute Exchange? and which attribute? Or is there some other API? I saw that the login page has a provider for google and a different one for google profile, so someone around

Getting Twitter Access Secret using DotNetOpenAuth in MVC4

耗尽温柔 提交于 2019-12-01 00:48:47
I'm creating an app with MVC4 that will authorize users using Twitter and lets them tweet from the app as well. I'm able to get the user authenticated without a problem using the BuiltInOAuthClient.Twitter that is in MVC4. http://www.asp.net/web-pages/tutorials/security/enabling-login-from-external-sites-in-an-aspnet-web-pages-site I have the access token, and oauth_verifier, but I need to get the acess_secret back from Twitter as well. https://dev.twitter.com/docs/auth/implementing-sign-twitter What I'm missing is how to pass the oauth_verifier back to Twitter to get the access secret using

DotNetOpenAuth OpenID Flow w/ Own Auth Server

懵懂的女人 提交于 2019-12-01 00:08:53
I'm having a lot of difficulty finding answers to a scenario I have to implement using DotNetOpenAuth and a particular flow I have to deal with. In the graphic below I am in control of both the MVC site and API. The API is both my Authorisation server and my Resource Server. Username and Password Flow The process is fairly obvious in a case where the user has created a local account on my system as I'm dealing with user name and password credetials to log them into the site which I can then pass to my Token endpoint and subequently pass to the HandleTokenRequest of my authorisation server in

DotNetOpenAuth: Message signature was incorrect

六眼飞鱼酱① 提交于 2019-11-30 23:51:11
问题 I'm getting a "Message signature was incorrect" exception when trying to authenticate with MyOpenID and Yahoo. I'm using pretty much the ASP.NET MVC sample code that came with DotNetOpenAuth 3.4.2 public ActionResult Authenticate(string openid) { var openIdRelyingParty = new OpenIdRelyingParty(); var authenticationResponse = openIdRelyingParty.GetResponse(); if (authenticationResponse == null) { // Stage 2: User submitting identifier Identifier identifier; if (Identifier.TryParse(openid, out