Looking for samples of using DotNetOpenAuth with WebAPI [closed]

﹥>﹥吖頭↗ 提交于 2019-12-06 06:07:21

问题


I'm trying to secure my WebAPI project, and would like to use DotNotOpenAuth, but I'm unable to find any quality samples or tutorials. I've tried grabbing the sample that come with the DNOA source on GitHub, but can't seem to get those running correctly. What would be fantastic would be a quick walk through on using DNOA from the ground up authenticating against google/twitter/facebook whoever.


回答1:


DotNetOpenAuth is hosted on github. It means you will find there not only samples, but also source code, and other interesting things

https://github.com/DotNetOpenAuth/DotNetOpenAuth

When speaking about samples and Web API, there is only one sample project:

OAuth2ProtectedWebApi https://github.com/DotNetOpenAuth/DotNetOpenAuth/tree/master/samples/OpenIdProviderMvc

You can find there also ASP.NET MVC samples. It will be usefull, as ASP.NET MVC is pretty similar to Web API.

When you have more question, as source for your answers and discussions try to consider DotNetOpenAuth group:

https://groups.google.com/forum/?fromgroups#!forum/dotnetopenid



来源:https://stackoverflow.com/questions/16155704/looking-for-samples-of-using-dotnetopenauth-with-webapi

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