dotnetopenauth

Google OpenId: No OpenID endpoint found (intermittent)

杀马特。学长 韩版系。学妹 提交于 2019-11-30 19:34:35
Usually using the Google OpenId works fine, thousands of times a day, then it will start intermittently going wrong and timing out for an hours or so (some requests will validate but not all). Repeated validation will eventually work. Error messages are: Event code: 200000 Event message: No OpenID endpoint found. : https://www.google.com/accounts/o8/id Sequence contains no elements Adding in log4net yields: DotNetOpenAuth.Yadis: Error while performing discovery on: "https://www.google.com/accounts/o8/id": DotNetOpenAuth.Messaging.ProtocolException: Error occurred while sending a direct message

How do I retrieve google profile with DotNetOpenAuth?

主宰稳场 提交于 2019-11-30 19:31:51
问题 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

Getting Twitter Access Secret using DotNetOpenAuth in MVC4

♀尐吖头ヾ 提交于 2019-11-30 18:24:34
问题 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

InvalidOperationException thrown regarding DotNetOpenAuth.IEmbeddedResourceRetrieval with Razor view

眉间皱痕 提交于 2019-11-30 14:04:46
When my Razor view calls @Html.OpenIdSelector(... I get an InvalidOperationException : The current IHttpHandler is not one of types: System.Web.UI.Page, DotNetOpenAuth.IEmbeddedResourceRetrieval. An embedded resource URL provider must be set in your .config file. What exactly should I set in the config file? Just NuGet the DotNetOpenAuth package. It will setup everything you need in your config file: Right click on the References of your web project in the solution explorer Add Library Package Reference... Click on the Online tab. In the search box type dotnetopenauth Click Install Everything

AuthenticationResult.IsSuccessful started returning false for google

寵の児 提交于 2019-11-30 07:50:24
问题 Today, without any change on my live site, logging in with the Google external login provider stopped working. This only happens to users that have a google login, other providers are fine. This also only happens on the live site, my dev machine running the debug version of the same code is fine. My code is similar to the example MVC app with: public ActionResult ExternalLoginCallback( string returnUrl ) { ... AuthenticationResult result = OAuthWebSecurity.VerifyAuthentication( Url.Action(

How to configure dotNetOpenId in an session less load balancing environment

南楼画角 提交于 2019-11-30 05:33:23
You've probably solved this before. I need to be able to use open id in an environment that does not have session stickiness. The servers do preserve the headers. I'm using ASP.NET MVC and dotNetOpenId version 3.2.0.9177. Although the authentication on the 3rd party web site goes without a hitch when returning the response I get an error and authentication fails. Any thoughts? Stateful The most optimized method is to write a custom persistence store that implements IRelyingPartyApplicationStore for the "secrets" that OpenID RPs require, and pass your instance to the OpenIdRelyingParty

Google OpenId: No OpenID endpoint found (intermittent)

筅森魡賤 提交于 2019-11-30 04:21:54
问题 Usually using the Google OpenId works fine, thousands of times a day, then it will start intermittently going wrong and timing out for an hours or so (some requests will validate but not all). Repeated validation will eventually work. Error messages are: Event code: 200000 Event message: No OpenID endpoint found. : https://www.google.com/accounts/o8/id Sequence contains no elements Adding in log4net yields: DotNetOpenAuth.Yadis: Error while performing discovery on: "https://www.google.com

DotNetOpenAuth not working with MVC 5 RC

女生的网名这么多〃 提交于 2019-11-30 03:10:32
I have been working a lot with DotNetOpenAuth. First we used 5.0.0-alpha1 but we switched over to v4.0.30319 because we couldn't find what was causing our problems. We are building a C# Web API project on .NET 4.5.1 RC with MVC 5 RC in Visual Studio 2013. We have implemented IAuthorizationServerHost , INonceStore , and ICryptoKeyStore . The problem that we have are around the following case: public class TokensController : Controller { private readonly AuthorizationServer authorizationServer = new AuthorizationServer(new MyAuthorizationServer()); /// <summary> /// This action will handle all

OAuth2 and DotNetOpenAuth - implementing Google custom client

霸气de小男生 提交于 2019-11-30 02:00:36
I'm having an issue implementing custom OAuth2Client for google using DotNetOpenAuth and MVC4. I've got to the point where I can successfully make the authorization request to the google endpoint https://accounts.google.com/o/oauth2/auth and Google asks if the user will allow my application access to their account. All good so far. When the user clicks 'OK', google then calls my callback URL as expected. The problem is when I call the VerifyAuthentication method on the OAuthWebSecurity class (Microsoft.Web.WebPages.OAuth) var authenticationResult = OAuthWebSecurity.VerifyAuthentication(Url

How do I use OAuth to connect to the Etrade API?

一个人想着一个人 提交于 2019-11-30 00:09:33
E-Trade released their API recently and provided technical documentation which is somewhat useful but not complete . Does anyone have a fully working example in C# that shows how this works? I have been able to do the authentication using OAuth correctly, but when it comes to getting information out of my account or market data, the servers fail. I was able to connect using the DevDefined OAuth Library, but i had to make some tweeks to the source to get it to work properly. I forked the repo so you can download the src i used, and build you a .dll. Repo: GitHub Example Class: public abstract