.NET OpenId Library - both Provider and Consumer

喜欢而已 提交于 2019-12-05 04:23:39

问题


I would like to add OpenId support to an app. It runs on ASP.NET MVC, and I would like to have it support OpenId authentication for users, and also allow users to use the app as an OpenId Provider. So basically I am looking for a good library that can be used as a provider and consumer for OpenId, and it has to be easily plugged into ASP.NET MVC (or at least easily wrapped by a controller and a set of views.


回答1:


Stacked an Open Source implementation of StackOverflow uses DotNetOpenID which I think also probably SO itself uses...

Though it's built on WebControls paradigm so I think you'll have troubles implementing it with Microsoft MVC.

I know Grurrah uses a WebControl based Ajax library (Gaia Ajax - my previous startup) together with the Castle project MVC implementation, but I don't know anytig of the semantics. Though Grurrah is Open Source too, so I think you can easily browse the code of it to check it out :)

That means you can use DotNetOpenID together with Castle project MVC library (probably) and you can get to kick in Ra-Ajax for Ajax functionality (Disclaimer; I work with Ra-Ajax and also Stacked)




回答2:


The MVCStorefront ASP.NET MVC sample implements OpenId and is pretty easy to follow. You can grab the lastest source code from here



来源:https://stackoverflow.com/questions/328079/net-openid-library-both-provider-and-consumer

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