简体   繁体   English

如何形成对另一个域的 SSO 的 SAML 请求?

[英]How to form SAML request for SSO to another domain?

I have an angular application where it needs to SSO with a third party application when clicked on one of tabs.我有一个 angular 应用程序,当单击其中一个选项卡时,它需要与第三方应用程序进行 SSO。 The third party has provided a SAML endpoint that I need to hit with a payload, and that will generate cookies for me and then I get hit other endpoints like the /authenticate and /token.第三方提供了一个 SAML 端点,我需要使用有效负载对其进行攻击,它将为我生成 cookies,然后我会遇到其他端点,例如 /authenticate 和 /token。 I was using postman to make a post request with the payload but it is does not look like it is working.我正在使用 postman 使用有效负载发出发布请求,但它看起来不像它正在工作。 Any opensource or any nuget package C# I can use to send SAML request.任何开源或任何 nuget package C# 我可以用来发送 SAML 请求。 How do I form my SAML response?如何形成我的 SAML 响应?

At this point the best library to do this task is:此时执行此任务的最佳库是:

Sustainsys.Saml2

https://www.nuget.org/packages/Sustainsys.Saml2/ https://www.nuget.org/packages/Sustainsys.Saml2/

https://saml2.sustainsys.com/en/stable/ https://saml2.sustainsys.com/en/stable/

https://github.com/Sustainsys/Saml2 https://github.com/Sustainsys/Saml2

  1. Good documentation良好的文档
  2. Friendly testing environment友好的测试环境
  3. Easy to incorporate into your project I have used it in my project and it works well易于整合到您的项目中 我在我的项目中使用过它并且效果很好

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM