gpt4 book ai didi

c# - WCF 中的 Oauth 2.0 服务提供者

转载 作者:行者123 更新时间:2023-11-30 22:11:11 36 4
gpt4 key购买 nike

我需要创建一个 RESTful WCF 服务,它需要使用 OAuth 2.0 对调用者进行身份验证。过去一周我一直在学习 OAuth 和它的提供者实现,这些是我发现的资源,它们接近我想要的。

(1) http://weblogs.asp.net/cibrax/archive/2008/11/14/oauth-channel-for-wcf-restful-services.aspx https://code.google.com/p/devdefined-tools/wiki/OAuth(2) http://www.cleancode.co.nz/blog/523/oauth-dot-net

它们都有点旧(2-3 年),而且都是 OAuth 1.0。我想要 Oauth2.0,因为它更简单。是否有任何库(在 C# 中)可以用作指南我的实现?

PS:我在 StackOverFlow 中找到了以下相关帖子,但它们也不足以满足我的项目要求。(1) what is the recommended database structure for OAuth Provider(2) OAuth Simple Service Provider

谢谢!

最佳答案

DotnetOpenOAuth 是一个很棒的包,可以满足您的需求。安装包并查看示例... http://dotnetopenauth.net/

https://github.com/DotNetOpenAuth/DotNetOpenAuth/blob/master/README.md

关于c# - WCF 中的 Oauth 2.0 服务提供者,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20403462/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com