简体   繁体   English

SAML - Java中的服务提供者

[英]SAML - Service Provider in Java

I have setup Shibboleth IDP and SP. 我已经设置了Shibboleth IDP和SP。 They are configured properly and are working. 它们配置正确并且正在工作。

I now want to remove the SP and replace it with my own code. 我现在想删除SP并用我自己的代码替换它。 ie: I want my Java code to function as the SP (routing requests, host metadata and verify SAML assertions) without running shibd.exe and httpd.exe. 即:我希望我的Java代码在不运行shibd.exe和httpd.exe的情况下充当SP(路由请求,主机元数据和验证SAML断言)。

Is this possible using OpenSAML? 这可能使用OpenSAML吗? Are there any examples I can use? 我可以使用任何例子吗?

我使用Shibboleth ECP扩展来做到这一点。

ECP profile is indeed a good way to achieve this. ECP配置文件确实是实现这一目标的好方法。 If it's all working for you then you should stick to this, I only want to point you to another possible direction. 如果这一切都适合你,那么你应该坚持这一点,我只想指出你另一个可能的方向。

If you still need to use Web Browser Single Sign On profile you could try integrate your code with Guanxi ( src , doc ), a Shibboleth SP Java Implementation. 如果您仍然需要使用Web浏览器单点登录配置文件,您可以尝试将您的代码与Guanxi( srcdoc ),Shibboleth SP Java实现集成。

But of course if you only need some lightweight Java Code to access Shibboeleth IdP then ECP is completely fine. 但是当然如果您只需要一些轻量级Java代码来访问Shibboeleth IdP,那么ECP就完全没问题了。

Here is the documentation for the openSAML-java .Refer this 这是openSAML-java的文档。请注意这一点

https://wiki.shibboleth.net/confluence/display/OpenSAML/OSTwoUserManual https://wiki.shibboleth.net/confluence/display/OpenSAML/OSTwoUserManual

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

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