diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2015-12-11 13:02:49 +0100 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2015-12-11 13:02:49 +0100 |
commit | 6200f158dbad1acf9bf6982a738c58620452f813 (patch) | |
tree | 3fd0a53efa2cc70cae8b72289fa5cb7f39bdea7f /src/saml2/mdstore.py | |
parent | 82d3b4da6ebd19f556d2f4d377236a05bb64cd75 (diff) | |
download | pysaml2-6200f158dbad1acf9bf6982a738c58620452f813.tar.gz |
Reworked the security backend so you should now be able to use a HSM again for XML security. Support for non-XML crypto using HSMs are on the way.
Diffstat (limited to 'src/saml2/mdstore.py')
-rw-r--r-- | src/saml2/mdstore.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/saml2/mdstore.py b/src/saml2/mdstore.py index c6bb1ecb..07f199e2 100644 --- a/src/saml2/mdstore.py +++ b/src/saml2/mdstore.py @@ -43,6 +43,9 @@ class ToOld(Exception): pass +class SourceNotFound(Exception): + pass + REQ2SRV = { # IDP "authn_request": "single_sign_on_service", @@ -718,7 +721,7 @@ class MetaDataExtern(InMemoryMetaData): return self.parse_and_check_signature(_txt) else: logger.info("Response status: %s", response.status_code) - return False + raise SourceNotFound(self.url) class MetaDataMD(InMemoryMetaData): |