简体   繁体   English

基于元数据xml创建SAML 2.0 AuthnRequest的Java代码

[英]Java code to create SAML 2.0 AuthnRequest based on meta data xmls

Can someone please share the complete Java code to create an AuthnRequest for web browser sso based SAML2.0. 有人可以共享完整的Java代码来为基于Web浏览器sso的SAML2.0创建AuthnRequest。 We have a service provider to use a 3rd party IDP. 我们有一个服务提供商可以使用第三方IDP。 I am working with a J2EE component in the DMZ that wouldn't let any jar files to add, so I am looking at writing complete Java code to produce an AuthnRequest and redirect the user to the IDP. 我正在使用DMZ中的J2EE组件,该组件不允许添加任何jar文件,因此我正在研究编写完整的Java代码以生成AuthnRequest并将用户重定向到IDP。 Thanks in Advance 提前致谢

I strongly doubt there is any implementation out there that does this without any external dependecies. 我强烈怀疑那里有没有任何外部依赖就可以做到这一点的实现。

I suggest you look into the implementation of simplesamlphp . 我建议您研究simplesamlphp的实现。 The code is quite easy to understand but to implement this correclty and securly at your end I would recommend that you have a good understanding of the SAML 2.0 protocol 代码很容易理解,但是要在最终实现此正确性和安全性,我建议您对SAML 2.0协议有一个很好的了解

I would advice aginst this as there is a big risk of introducing security issues. 对此我建议,因为存在引入安全问题的巨大风险。 This will take time and should be thoroughly tested 这将需要一些时间,应进行彻底测试

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

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