.net c# OAuth 2.0授权服务器

OAuth 2.0 Authorization server
2021-06-10
  •  译文(汉语)
  •  原文(英语)

我有一个由ASP.Net WebApi实现的REST服务,ASP.Net WebApi是使用此服务的WPF客户端应用程序.每个用户都有一个用户名/密码存储在Azure表存储中.现在,我想实现一个OAuth授权服务器"Resource Owner Password Flow".

现在我的问题是:如何在.net中实现OAuth 2.0"授权服务器"?

我发现DotNetOpenAuth和thinktecture可以提供帮助,但是我不确定它们中的任何一个.

OAuth 2.0授权服务器

速聊1:
我是oauth的新手,不知道从哪里开始.我刚发现两个库可能对第一个有所帮助,第一个是DotNetOpenAuth,第二个叫做thinktecture.
解决过程1

除了许多其他有用的示例外,DotNetOpenAuth还具有WPF示例.该库的唯一缺点是缺乏全面的文档,但是示例非常好并且易​​于遵循.

速聊1:
我不要求提供WPF示例,而是要求授权服务器.
速聊2:
WPF示例是完整示例集的一部分,包含身份提供者和资源服务器.
速聊3:
我现在可以使用DotNetOpenAuth吗?还是我们现在有一个较新的库可供使用?
速聊4:
:DotNetOpenAuth仍然可用.

I have a REST service implemented by ASP.Net WebApi, a WPF client application that consume this service. Every user have a UserName/Password in stored in Azure Table storage. Now I want to implement an OAuth authorization server "Resource Owner Password Flow".

Now my question is: How can I implement an OAuth 2.0 "authorization server" in .net?

I found that DotNetOpenAuth and thinktecture can help, but I'm not sure about any of them.

OAuth 2.0 Authorization server

Talk1:
I'm a newbie in oauth and don't know where to start. I just found two libraries that may help the first one is DotNetOpenAuth and the second called thinktecture.
Solutions1

The DotNetOpenAuth has a WPF example among many other helpful examples. The only disadvantage of the library is the lack of comprehensive documentation, however samples are great and easy to follow.

Talk1:
I don't ask for a WPF example, I'm asking for an authorization server.
Talk2:
The WPF example is a part of the complete example set, containing both an identity provider and a resource server.
Talk3:
Can I use DotNetOpenAuth now; or we have now a newer library to use?
Talk4:
: DotNetOpenAuth is still usable.
转载于:https://stackoverflow.com/questions/19081602/oauth-2-0-authorization-server

本人是.net程序员,因为英语不行,使用工具翻译,希望对有需要的人有所帮助
如果本文质量不好,还请谅解,毕竟这些操作还是比较费时的,英语较好的可以看原文

留言回复
我们只提供高质量资源,素材,源码,坚持 下了就能用 原则,让客户花了钱觉得值
上班时间 : 周一至周五9:00-17:30 期待您的加入