Signature verification raises MissingKey (SigverError) if only_use_keys_in_metadata config option is set and we have no certs for issuer.
This commit is contained in:
@@ -49,7 +49,7 @@ from saml2 import VERSION
|
|||||||
from saml2 import class_name
|
from saml2 import class_name
|
||||||
from saml2.config import config_factory
|
from saml2.config import config_factory
|
||||||
from saml2.httpbase import HTTPBase
|
from saml2.httpbase import HTTPBase
|
||||||
from saml2.sigver import security_context, response_factory, SignatureError
|
from saml2.sigver import security_context, response_factory, SigverError
|
||||||
from saml2.sigver import pre_signature_part
|
from saml2.sigver import pre_signature_part
|
||||||
from saml2.sigver import signed_instance_factory
|
from saml2.sigver import signed_instance_factory
|
||||||
from saml2.virtual_org import VirtualOrg
|
from saml2.virtual_org import VirtualOrg
|
||||||
@@ -794,7 +794,7 @@ class Entity(HTTPBase):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
response = response.loads(xmlstr, False)
|
response = response.loads(xmlstr, False)
|
||||||
except SignatureError, err:
|
except SigverError, err:
|
||||||
logger.error("Signature Error: %s" % err)
|
logger.error("Signature Error: %s" % err)
|
||||||
return None
|
return None
|
||||||
except Exception, err:
|
except Exception, err:
|
||||||
|
|||||||
Reference in New Issue
Block a user