寻找结合使用DotNetOpenAuth和WebAPI的样本 [英] Looking for samples of using DotNetOpenAuth with WebAPI

查看:54
本文介绍了寻找结合使用DotNetOpenAuth和WebAPI的样本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试保护我的WebAPI项目,并希望使用DotNotOpenAuth,但是我找不到任何高质量的示例或教程。我曾尝试在GitHub上获取DNOA源随附的示例,但似乎无法使其正常运行。奇妙的是从头开始快速使用DNOA对Google / twitter / facebook进行身份验证。

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.

推荐答案

DotNetOpenAuth托管在github上。这意味着您不仅可以找到示例,还可以找到源代码以及其他有趣的东西

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

谈到示例和Web API时,只有一个示例项目:

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

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

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

您也可以找到ASP.NET MVC样品。这将很有用,因为ASP.NET MVC与Web API非常相似。

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

当您有更多问题时,作为答案和讨论的来源,请尝试考虑DotNetOpenAuth小组:

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

这篇关于寻找结合使用DotNetOpenAuth和WebAPI的样本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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