如何开始在一个asp.net MVC3项目使用OpenID登录? [英] how to start using openID in an asp.net mvc3 project?

查看:162
本文介绍了如何开始在一个asp.net MVC3项目使用OpenID登录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的网站的身份验证机制(在asp.net MVC3),第一选择的OpenID通过我的网站的另一种选择。我不知道该如何下手dotnetopenid,因为它不具备良好的文档或一些指导开始使用它。是否有任何视觉文件或通过它一步资源的任何有用的一步。另一个问题:?!我希望有谷歌和雅虎OpenID认证,是否有使用它们两者有什么区别

I want to have authentication mechanism for my site (in asp.net mvc3), first option openID another option via my site. I don't know how to start with dotnetopenid, because it does not have a good document or some guidance to start with it. Is there any visual document or any useful step by step resource for it. The other question: I want to have google and yahoo openID authentication, is there any difference for using both of them?!

坦克很多关于你的建议

推荐答案

您可以做的不如下载的 ASP.NET MVC 2 OpenID的网站(C#)从Visual Studio Gallery中的模板。

You could do worse than download the ASP.NET MVC 2 OpenID web site (C#) template from the Visual Studio Gallery.

一个C#的ASP.NET MVC项目模板
  让你在网络上的一个良好的开端
  网站接受OpenID的。一个OAuth
  服务提供商也被包括在内,以便
  客户端可以访问用户的数据与
  用户授权和未经
  密码。

A C# ASP.NET MVC project template to get you on a strong start on a web site that accepts OpenID. An OAuth service provider is also included so that clients can access user data with user authorization and without a password.

还有一个模板名为<一个href=\"http://visualstudiogallery.msdn.microsoft.com/fe61654a-e420-4012-affb-04a0607fb10b\">Html5-MVC3-BP-OpenAuth其被描述为:

There is also a templated called Html5-MVC3-BP-OpenAuth which is described as:

这个模板创建一个MVC3剃刀
  从Html5的样板工程
  保罗爱尔兰。此外,还包括
  DotNetOpenAuth CTP认证
  通过OpenID,微博(OAuth的)或
  Facebook的(OAuth2用户)。

This template creates an MVC3 Razor project with Html5 Boilerplate from Paul Irish. Also includes the DotNetOpenAuth CTP for authentication via OpenId, Twitter (OAuth) or Facebook (OAuth2).

另外请查看 MvcOpenID - 一个OpenID入门套件上codePLEX ASP.NET MVC

MvcOpenID是一个OpenID入门套件
  ASP.NET MVC的。它是第一和
  最重要的学习工具。我学过
  很多关于OpenID的同时发展
  这一点,并评论了code很多。
  运行应用程序和步进
  通过code是最好的,
  可能是最快的方式来学习。
  除了它的教育价值,你
  还可以使用它作为一个入门套件
  您的基于ASP.NET MVC的Web
  应用。

"MvcOpenID is an OpenID starter kit for ASP.NET MVC. It is first and foremost a learning tool. I've learned a lot about OpenID while developing this and commented the code a lot. Running the application and stepping through the code is the best and probably the fastest way to learn. Apart from it's educational value you can also use it as a starter kit for your ASP.NET MVC based web applications."

这篇关于如何开始在一个asp.net MVC3项目使用OpenID登录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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