SAML与web api中的oauth

编程入门 行业动态 更新时间:2024-10-17 23:31:07
本文介绍了SAML与web api中的oauth的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨每一个 我正在开发web api项目,因为我实现了OAuth安全性,但现在客户想要oauth的saml所以我没有一个想法如何实现saml我搜索了很多网站,但我没有得到代码的想法。以及如何使用我们的应用程序配置IDP和SP请逐步举例说明如何实现它。 我尝试过: i已经尝试了很多站点中的代码以及那些网站上提到的工具。 也尝试了代码项目示例但是我不知道IDP的配置一个SP 有服务请任何人可以帮我从这个出来

Hi Every one I am developing the web api project in that i implemented the OAuth Security but now the client want saml with oauth so i don't have an idea how to implement saml i searched lot of sites but i did not get the idea of code. and also how to configure IDP and SP with our app please give the example step by step how to implement it. What I have tried: i have tried the code in lot of sites and the tools which are mentioned on that sites. also tried the code project example but i don't know the configuration of IDP An SP with service please any one can help me to come out from this one

推荐答案

SAML只是一个标准,它完全在你手中实现它,你可以用任何方式这样做。在这种情况下,您需要使用的是用户的电子邮件地址,而不是您的应用程序ID和秘密令牌。您将拥有一种基于自定义握手在两个或更多组织之间进行通信的机制。在OAuth中,您使用了该应用程序,然后要求用户对应用程序进行身份验证,但在此处您正在进行相反的操作 - 您希望创建和共享用户信息。完整的想法在 SAML 的使用部分中得到了公正的解释[ ^ ]。 另请阅读认证 - SAML与OAuth联合登录 - Stack Overflow [ ^ ] 既然你在谈论ASP.NET Web API,那么只需使用ASP.NET Identity,它就拥有了大部分内容。已经引入的功能。您还可以将其与Active Directory集成以供组织内部使用。 SAML is just a standard, it entirely is in your hands to implement it, you can use any way to do so. What you need to use in this case is email address of the user, instead of your application ID and a secret token. You will have a mechanism to communicate between two or more organizations based on a self-defined handshake. In OAuth you used the application, and then asked user to authenticate the application, but here you are doing opposite — you want to create and share user information. The complete idea is explained fairly in the Use section of SAML[^]. Also read, authentication - SAML vs federated login with OAuth - Stack Overflow[^] Since you are talking about ASP.NET Web API, just use ASP.NET Identity, it has most of the features already introduced in it. You can also integrate it with Active Directory for organization's internal usage.

更多推荐

SAML与web api中的oauth

本文发布于:2023-11-02 17:07:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1552945.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:web   SAML   oauth   api

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!