diff options
author | Yuqing <yuqing@boost.ai> | 2018-11-10 12:23:25 +0100 |
---|---|---|
committer | Yuqing <yuqing@boost.ai> | 2018-11-10 12:23:25 +0100 |
commit | 539f1e637fb7eda8fa59725e6f4c2d898893589b (patch) | |
tree | 04034b5aa7c727315e3308a07f68dd94f66e018e /example | |
parent | ab2c644c74c2590939bcdd92e65e3389bbc44dd6 (diff) | |
download | pysaml2-539f1e637fb7eda8fa59725e6f4c2d898893589b.tar.gz |
Fixed Unicode-objects must be encoded before hashing bug
Diffstat (limited to 'example')
-rwxr-xr-x | example/idp2/idp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/idp2/idp.py b/example/idp2/idp.py index 5e924f49..0c3d0913 100755 --- a/example/idp2/idp.py +++ b/example/idp2/idp.py @@ -371,7 +371,7 @@ class SSO(Service): @staticmethod def _store_request(saml_msg): logger.debug("_store_request: %s", saml_msg) - key = sha1(saml_msg["SAMLRequest"]).hexdigest() + key = sha1(saml_msg["SAMLRequest"].encode()).hexdigest() # store the AuthnRequest IDP.ticket[key] = saml_msg return key |