404通过URL访问Okta IdP元数据时出错

时间:2016-11-04 05:17:06

标签: saml-2.0 okta

我在Okta中创建了SAML 2.0模板,并在我的应用程序配置中复制了元数据URL。但是我收到404错误。我也试过通过浏览器访问URL,这确实给我404错误。有人有这个问题吗?我试图在互联网上搜索它并没有看到任何解决方案。想知道设置是否有问题。令人惊讶的是,下载文件中的元数据并使用基于文件的元数据配置正常工有什么猜测这里会发生什么?

使用URL时,我也会看到xml解析器异常。

    2016-11-02 13:22:48,905 [localhost-startStop-1] ERROR org.opensaml.xml.parse.StaticBasicParserPool - XML Parsing Error
org.xml.sax.SAXParseException; lineNumber: 35; columnNumber: 3; The element type "meta" must be terminated by the matching end-tag "</meta>".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
.

1 个答案:

答案 0 :(得分:0)

您能否提供您正在使用的元数据网址?请确保您通过转到您的SAML应用程序获取Okta中的元数据网址 - &gt;登录标签 - &gt;在“查看设置说明”下,有“身份提供商元数据”链接。您需要复制该链接。它也可以在下面看到。

enter image description here

链接看起来像https://org-name.okta.com/app/cxk5x6wkxxxxxxx0x7/sso/saml/metadata

如果您通过相同的方法获取了元数据文件网址,并且类似于上面的示例网址,那么请您提供吗?