如何实现OAuth2提供者和使用者在C#.NET [英] How to implement OAuth2 provider and consumer in C# .NET

查看:1085
本文介绍了如何实现OAuth2提供者和使用者在C#.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在做一个有点oauth2摸索,并认为这可能是一个非常适合某些WCF休息服务我建了,将一些WPF应用程序和MVC的Web应用程序所消耗。想法是,该用户被最初要求登录他们的用户名/密码和接收的接入令牌这使他们获得了前述的资源(多个)。

I have been doing a bit of searching around on oauth2 and think it may be a good fit for some WCF rest services I am building out that will be consumed by some WPF apps and MVC web apps. The idea would be that the user is initially asked to login with their username / password and receives an access token which gives them access to the aforementioned resource(s).

在搜索在这里上oauth2所以我还没有找到多少信息除了少数消费者相关的问题向Facebook等。

Searching around here on SO I have not found much information on oauth2 except for a few consumer related questions to facebook etc.

我不知道是否有人能提供关于实施oauth2一些提示(或知道任何好的资源)。我很感兴趣,无论是供应商(认证和颁发访问令牌),以及客户端/消费终端。

I'm wondering if anybody can provide some tips on implementing oauth2 (or knows of any good resources). I am interested in both the provider (authenticating and issuing access tokens) as well as the client/consumer end.

.NET OAuth2库

唯一OAuth2图书馆中,我发现是dotnetopenauth这也似乎是大举进入的OpenID。在这个阶段,我宁愿一个库,它是一个小更轻,只是包括这样oauth2

The only OAuth2 library I found is from dotnetopenauth which also seems to be heavily into openid. At this stage I'd rather a library that is a little lighter and just emcompasses oauth2

是否有可用的任何其他oauth2库了吗?

Are there any other oauth2 libraries available yet?

推荐答案

还有的 OAuth的.NET

这篇关于如何实现OAuth2提供者和使用者在C#.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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