简体   繁体   English

我需要在哪里将Okta SAML IdP Metadata .xml文件放入自定义Java应用程序中?

[英]Where do I need to put the Okta SAML IdP Metadata .xml file in my Custom Java application?

I am currently in the process of using Okta's SAML Java Toolkit to enable SAML within a custom Java application. 我目前正在使用Okta的SAML Java工具包在自定义Java应用程序中启用SAML。

I have generated the IdP Metadata in the Admin section of Okta, but am unsure of where I need to place it in my Java application. 我已经在Okta的“管理”部分中生成了IdP元数据,但是不确定是否需要将其放置在Java应用程序中。

I am using a weblogic server to test the program locally. 我正在使用Weblogic服务器在本地测试程序。 Where would I place the .xml file containing the IdP metadata in order for SAMLRequests and SAMLResponses to gather the correct information? 我应该将包含IdP元数据的.xml文件放在哪里,以便SAMLRequest和SAMLResponses收集正确的信息?

Thanks for your help. 谢谢你的帮助。

The elements of IdP metadata are used in Custom SP Java application during runtime. IdP元数据的元素在运行时在Custom SP Java应用程序中使用。 If you can hook various elements of IdP metadata into your custom SP application, then you don't have to place IdP metadata anywhere in your application. 如果您可以将IdP元数据的各种元素挂钩到自定义SP应用程序中,则不必将IdP元数据放置在应用程序中的任何位置。

You can use a URL that points to a metadata.xml file. 您可以使用指向metadata.xml文件的URL。 The link pointing to the metadata file is utilized in Okta's Spring Security SAML toolkit for Java apps. Okta的Java应用程序的Spring Security SAML工具包中使用了指向元数据文件的链接。 This is detailed on our site: http://developer.okta.com/docs/guides/spring_security_saml.html#configuring-spring-security-saml-to-work-with-okta 在我们的网站上对此有详细说明: http : //developer.okta.com/docs/guides/spring_security_saml.html#configuring-spring-security-saml-to-work-with-okta

See Step 10. 请参阅步骤10。

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

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