dotnetopenauth

DotNetOpenAuth oAuth in ASP.NET MVC [closed]

情到浓时终转凉″ 提交于 2019-12-02 15:32:30
I'm trying to understand how to apply the oAuth consumer library from DotNetOpenAuth in the context of ASP.NET MVC. oAuth is new to me, and the library doesn't seem very simple. Does anyone have a sample of leveraging this library, for this usage, in ASP.NET MVC? Amrit You may want to look at the sample projects that come along with the DotNetOpenAuth source code . The solution obtained on unzipping has several sample projects in it. One of them is an Oauth consumer implementation. Though it is a ASP.NET Webforms application, reimplementing it as an ASP.NET MVC application shouldn't be too

OpenIDSelector problem in asp.net

左心房为你撑大大i 提交于 2019-12-02 13:13:20
问题 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. The issue i am having is with openidselector control from my toolbox generated from dotnetopenauth.dll. It does not work and not even displays. Any help? code: 回答1: I use the following one and it is really great. But you need to figure out most of the stuff to work with your asp.net logic; http://code.google.com/p/openid-selector/ EDIT Also this could be helpful; http://bhaidar.net

DotNetOpenId - Open Id get some data

做~自己de王妃 提交于 2019-12-02 11:14:07
问题 I'm using OpenId on a new website and am trying to get some basic information about the user, see the code below. Why is the following allways null? var myData = response.GetExtension<ClaimsResponse>(); And the main code [System.Web.Mvc.AcceptVerbs(HttpVerbs.Get)] public ActionResult LogOn() { var openid = new OpenIdRelyingParty(); IAuthenticationResponse response = openid.GetResponse(); if (response != null) { switch (response.Status) { case AuthenticationStatus.Authenticated:

Expectation Failed when trying to update twitter status

杀马特。学长 韩版系。学妹 提交于 2019-12-02 11:08:36
I can't seem to figure this one out. No matter what I do, I keep getting a "417 Expectation failed" error. Everywhere I've looked says that I need to get rid of the Expect header for the HttpWebRequest. Setting the static property ServicePointManager.Expect100Continue = false or the instance property on the web request request.ServicePoint.Expect100Continue = false never get's rid of the header. I have to manually set it to null to remove it. No matter what though, I STILL get the 417 error. What am I missing? private static readonly MessageReceivingEndpoint UpdateStatusEndpoint = new

DotNetOpenId — “This message has already been processed” Error

旧街凉风 提交于 2019-12-02 04:27:46
I'm starting with OpenId using the dotnetopenid library and, so far, so good, but when I try to login, it shows me the following message: This message has already been processed. This could indicate a replay attack in progress. The first time I used my app it failed and, after that, the above message it is always returned. How can I "logout" the user that I'm using for testing or how can I can clear the request so I can login/logout? Thanks in advance! =) I found the problem, a seely problem as usual... I was calling the GetResponse more than once, and that got me error message. Sorry for the

OpenIDSelector problem in asp.net

喜夏-厌秋 提交于 2019-12-02 04:01:55
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. The issue i am having is with openidselector control from my toolbox generated from dotnetopenauth.dll. It does not work and not even displays. Any help? code: I use the following one and it is really great. But you need to figure out most of the stuff to work with your asp.net logic; http://code.google.com/p/openid-selector/ EDIT Also this could be helpful; http://bhaidar.net/post/2011/04/04/OpenID-Single-Sign-On-ASPNET-Web-Forms.aspx 来源: https://stackoverflow.com/questions/6239256

How do I pull DotNetOpenAuth assembly references into unit test project for ASP.NET MVC4 solution?

旧街凉风 提交于 2019-12-02 03:55:20
Tl;dr version: I am stuck with the exception: System.IO.FileLoadException : Could not load file or assembly 'DotNetOpenAuth.AspNet, Version 4. 0 .0.0 ... A bit dismayed that msft used so many static classes and methods for auth in the new MVC4 project template. Want to wrap all membership/auth functionality into a class that implements an interface so that I can mock for unit tests. After a couple of evenings of struggling, I have decided to start from scratch, so I removed all DotNetOpenAuth* assembly references and nuget package.config references. I have similarly removed all references to

OpenIdProvider.GetRequest() returns null

风格不统一 提交于 2019-12-02 03:47:44
问题 As somewhat of a continuation of this question, I'm having problems with dotnetopenauth. I navigate to my relying party code and create the request, however when my provider receives the request OpenIdProvider.GetRequest() returns null. I went through the code and as far as I can tell, this is because the openid payload (request.form) is not being delivered by my relying party; but I can't figure out why this is. Code: Relying Party: public ActionResult Authenticate(string RuserName = "") {

OpenID on a mobile/cell phone

删除回忆录丶 提交于 2019-12-02 03:15:59
问题 I am trying to set up OpenID authentication on a mobile version of a site of mine (ASP.net MVC, dotnetopenid). When i tested it out earlier (Using WAP internet, Sony Ericsson w200i) it redirected to the provider OK but was very slow to start with, then failed completely due to what i suspect was a too large page. Does anyone know a good way to implement OpenID for WAP users with a slow connection? Do any providers provide a specialised mobile page? If OpenID is difficult to implement on a

OpenID on a mobile/cell phone

☆樱花仙子☆ 提交于 2019-12-02 02:42:31
I am trying to set up OpenID authentication on a mobile version of a site of mine (ASP.net MVC, dotnetopenid). When i tested it out earlier (Using WAP internet, Sony Ericsson w200i) it redirected to the provider OK but was very slow to start with, then failed completely due to what i suspect was a too large page. Does anyone know a good way to implement OpenID for WAP users with a slow connection? Do any providers provide a specialised mobile page? If OpenID is difficult to implement on a phone, are there any alternatives apart from username and password? There are a couple problems that could