简体   繁体   English

JAVA-SAML 2.0实施

[英]JAVA - SAML 2.0 implementation

I've read about SAML and its capabilities, Learned the theory behind it and I think I fully understand the SAML "cycle". 我已经阅读了有关SAML及其功能的知识,了解了其背后的理论,并且我认为我完全了解SAML的“周期”。
Now i'm stuck at the the point of actually implementing it on my web server (that serves as a service provider). 现在,我处于在Web服务器(作为服务提供者)上实际实现它的关键时刻。

I want to use SsoCircle as my identity provider (for testing purposes) and Spring-Security-Saml as my SAML library. 我想使用SsoCircle作为我的身份提供者(出于测试目的),并使用Spring-Security-Saml作为我的SAML库。

My questions are: 我的问题是:

  1. What do I need in order to create a SAML metadata? 创建SAML元数据需要什么? (Probably I lack the understanding of each metadata field) (可能我对每个元数据字段缺乏了解)
  2. Once I have the metadata ready what do I need to configure in order to work with SsoCircle IDP? 准备好元数据后,我需要配置什么才能与SsoCircle IDP一起使用? (I took the IDP metadata but don't have a clue what to do with it) (我获取了IDP元数据,但不知道如何处理它)
  3. If anyone has a sample project to share it would be amazing. 如果有人可以共享一个示例项目,那就太好了。 Doesn't have to be in Java. 不必使用Java。
  1. If you are using Spring SAML and have it configured correctly, you can navigate to http://localhost:8080/<context>/saml/metadata to download your Service Provider metadata in xml format. 如果您正在使用Spring SAML并正确配置了它,则可以导航到http://localhost:8080/<context>/saml/metadata以xml格式下载服务提供者元数据。

  2. You can created an account with SSOCircle where you can upload or copy paste the SP metadata. 您可以使用SSOCircle创建一个帐户,您可以在其中上传或复制粘贴SP元数据。 This allows SSOCircle to trust your SP because the metadata contains key information. 由于元数据包含关键信息,因此这使SSOCircle可以信任您的SP。

  3. This example project has is already integrated with SSO circle and a great starting point for learning how all the pieces fit together. 该示例项目已经与SSO圈集成在一起,并且是学习如何将所有部分组合在一起的一个很好的起点。 In the configuration, you should see where SSOCircle's metadata is loaded into the MetadataManger, along with the Service Provider's metadata. 在配置中,您应该看到SSOCircle的元数据与服务提供商的元数据一起加载到MetadataManger中的位置。

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

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