【发布时间】:2021-03-04 12:44:58
【问题描述】:
我正在尝试将SAML2 Auth 集成到现有的 django 项目中。但是我一直在收到这个错误。
F:\finessevenv\lib\site-packages\saml2\xml\schema\__init__.py:18: XMLSchemaImportWarning: Import of namespace 'http://www.w3.org/2000/09/xmldsig#' from ['http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd'] failed: block access to remote resource http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd.
return _XMLSchema(source, **kwargs)
F:\finessevenv\lib\site-packages\saml2\xml\schema\__init__.py:18: XMLSchemaImportWarning: Import of namespace 'http://www.w3.org/2001/04/xmlenc#' from ['http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd'] failed: block access to remote resource http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd.
return _XMLSchema(source, **kwargs)
F:\finessevenv\lib\site-packages\xmlschema\validators\schema.py:1191: XMLSchemaImportWarning: Import of namespace 'http://www.w3.org/2000/09/xmldsig#' from ['http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd'] failed: block access to remote resource http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd.
build=build,
F:\finessevenv\lib\site-packages\xmlschema\validators\schema.py:1191: XMLSchemaImportWarning: Import of namespace 'http://www.w3.org/2001/04/xmlenc#' from ['http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd'] failed: block access to remote resource http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd.
build=build,
这个错误的可能原因是什么,我该如何解决这个问题?
【问题讨论】: