How to use OpenID in ASP.net

坚强是说给别人听的谎言 提交于 2019-12-06 01:42:57

问题


I would like to create a site that authenticates using Google's OpenID. How would I do this?

Also, how would I use roles with custom tables?


回答1:


Check out DotNetOpenAuth as a library you can use. You can hard-code https://www.google.com/accounts/o8/id as your OP Identifier to get users to log in using their Google accounts.

You can check out the ASP.NET project template that will get you going, including with ASP.NET role management.




回答2:


Here's a good place to start: http://code.google.com/apis/accounts/docs/OpenID.html




回答3:


Scott Hansleman has a good article on OpenID in ASP.NET




回答4:


Here is the step-by-step process to implement OpenID on your ASP.NET application using DotNetOpenOAuth libraray.

Document describes how to implement Google login into your web application and Third-party web sites and let you aware how OpenID authentication works.



来源:https://stackoverflow.com/questions/2042601/how-to-use-openid-in-asp-net

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!