ASP.NET中的OpenID参考问题 [英] OpenID reference problem in asp.net

查看:77
本文介绍了ASP.NET中的OpenID参考问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用asp.net_c#在我的网站中使用OpenID。我正在使用asp.net v4在asp.net表单网站上工作。我正在关注以下文章: http://danhounshell.com/blog/adding-openid-to-your-web-site-in-conjunction-with-asp-net-membership/ http://www.dotnetopenauth.net/developers/code-snippets/programmatic-openid-relying-party /

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/

在登录按钮部分,我收到引用错误,指出找不到ClaimsRequest()类型或名称空间。我已经引用了:

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 DotNetOpenAuth;
using DotNetOpenAuth.OpenId;
using DotNetOpenAuth.OpenId.RelyingParty;

我正在使用最新的DotNetOpenAuth.dll,然后应如何引用?

I am using the latest DotNetOpenAuth.dll, how should it be referenced then?

推荐答案

如您所见, ClaimsRequest 类是 DotNetOpenAuth的一部分。 OpenId.Extensions.SimpleRegistration 命名空间

as you can see ClaimsRequest Class is part of DotNetOpenAuth.OpenId.Extensions.SimpleRegistration namespace

http://docs.dotnetopenauth.net/v3.3/html/T_DotNetOpenAuth_OpenId_Extensions_SimpleRegistration_ClaimsRequest.htm

这篇关于ASP.NET中的OpenID参考问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆