dotnetopenauth

dotnetopenid tutorial [closed]

橙三吉。 提交于 2019-12-12 08:33:54
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Pretty basic question, but can someone please point me to a constructive tutorial on how to implement and use dotnetopenid? I'm struggling to find any real documentation that explains how to implement the thing. I couldn't find anything on their website, and I've gone through a couple of the samples, but still

OpenID reference problem in asp.net

倾然丶 夕夏残阳落幕 提交于 2019-12-12 06:10:23
问题 I am trying to use OpenID in my website using asp.net_c#. I am working on asp.net forms website with asp.net v4. I am following the articles: http://danhounshell.com/blog/adding-openid-to-your-web-site-in-conjunction-with-asp-net-membership/ and http://www.dotnetopenauth.net/developers/code-snippets/programmatic-openid-relying-party/ On the login button part I am getting referencing error saying the ClaimsRequest() type or namespace could not be found. I've already referenced: using

NullReferenceException in DotNetOpenAuth

試著忘記壹切 提交于 2019-12-12 05:45:32
问题 I tracked down what appears to be a defect causing a NullReferenceException in my ASP.NET MVC app. Did I break this, or should this break DotNetOpenAuth for the majority of installations? I get this: [NullReferenceException: Object reference not set to an instance of an object.] DotNetOpenAuth.AspNet.OpenAuthSecurityManager.GetUsername(HttpContextBase context) +27 DotNetOpenAuth.AspNet.OpenAuthSecurityManager.RequestAuthentication(String returnUrl) +341 Controllers.LoginController.Index()

OpenID Relying Party response status shows Failed even with Provider authenticates - DotNetOpenAuth

筅森魡賤 提交于 2019-12-12 05:18:42
问题 Using the DNOA library, I created a Provider which authenticates a request and sends back the user information (like email, first name, etc). To test this, I created a Relying Party. This system works well on my localhost. When I put the Provider in my server, it worked fine but suddenly, I keep getting failed response. Looking at the response URL, I CAN see the email, first name being sent back from the Provider, but the RP is not recognizing it and goes into the 'Failed' case. The exact

Logout with gmail account through c# .net

橙三吉。 提交于 2019-12-12 02:50:05
问题 i am using DotNetOpenAuth dll for logging my sample application through gmail authentication through c# .net. I successfully login in my gmail account then i want to logout from my gmail account. I referred this link for login in gmail accout. Login with gmail account through c# .net 回答1: From this answer: https://stackoverflow.com/a/1026384/237838 I think you are mistaking the Relying Party and the OpenID Provider. Using StackOverflow as an example, SO is the Relying Party and other sites (e

DotnetOpenAuth : No OpenId End point found error for localhost

こ雲淡風輕ζ 提交于 2019-12-12 02:46:59
问题 I am writing a custom Open Id Client as below public class CustomOpenIdClient : OpenIdClient { public CustomOpenIdClient() : base("TestOpenId", "`http://localhost:39167/server.aspx`") { } protected override Dictionary<string, string> GetExtraData(IAuthenticationResponse response) { FetchResponse fetchResponse = response.GetExtension<FetchResponse>(); if (fetchResponse != null) { var extraData = new Dictionary<string, string>(); extraData.Add("email", fetchResponse.GetAttributeValue

DotNetOpen​Auth in IIS7; request not available

我们两清 提交于 2019-12-12 02:33:51
问题 Recently the company I work for has begun implementing OAuth in one of their web services. However, yesterday I came across a rather unusual problem. When debugging the application on a remote computer, I receive the following error: "System.Web.HttpException: Request is not available in this context". Now, when I first encountered this problem I found out that this usually has to do with the fact that I can't use the HttpContext object in the Application_Start method of Global.cs, so I

DotNetOpenAuth - ClientIdentifier & Authorising

丶灬走出姿态 提交于 2019-12-12 02:19:47
问题 I have an implementation of DNOA that I'm having trouble with. The code in the samples I have seen are wrong and cannot work and I cannot figure out how to get this working correctly. I have asked a similar question on the DNOA group here but I'm wondering if this is actually a bigger question related to OAuth in general. Andrew asserts that this should work but I see a lot of people asking the same question and no real solution. When using the ExchangeUserCredentialForToken DNOA is sending

Adding scopes to OAuth 1.0 authorization request with DotNetOpenAuth

ぐ巨炮叔叔 提交于 2019-12-12 01:28:56
问题 How do I add scopes to my authRequest? public void PrepareAuthorizationRequest(Uri authCallbakUrl) { var consumer = new WebConsumer(GoogleConsumerConsts.ServiceDescription, mConsumerTokenManager); // request access consumer.Channel.Send(consumer.PrepareRequestUserAuthorization(authCallbakUrl, null, null)); throw new NoRedirectToAuthPageException(); } 回答1: Scope isn't a defined concept in OAuth 1.0, which you're using in this sample. To define the scope of requested access, you should read the

No OpenID endpoint found

回眸只為那壹抹淺笑 提交于 2019-12-12 00:34:57
问题 I'm trying to use the DotNetOpenAuth library to login programmatically from an aspx page. To start with, I'd like to just be able to login using a 3rd party openid provider like myopenid. My website is an ASP .NET 4 web forms site hosted in IIS 7.5 hosted at port 9980. This port is open (inbound and outbound) in the computer's firewall. I'm trying to use the OpenIdLogin login control but I keep getting a ProtocolException saying "No OpenID endpoint found" I've already added this to web.config