summaryrefslogtreecommitdiffstats
path: root/custodia/message/common.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-06-04 15:44:01 -0400
committerSimo Sorce <simo@redhat.com>2015-06-04 16:55:27 -0400
commita5035f59f3b0293dcf42e5e7b69143bc1eb3281a (patch)
tree7f42e632d0e2314c13ddf1fb52e24361c04ce9ff /custodia/message/common.py
parent7e7450a7a20b29d141bc9e189c6fc563a03bb6b9 (diff)
downloadcustodia-a5035f59f3b0293dcf42e5e7b69143bc1eb3281a.tar.gz
custodia-a5035f59f3b0293dcf42e5e7b69143bc1eb3281a.tar.xz
custodia-a5035f59f3b0293dcf42e5e7b69143bc1eb3281a.zip
Change KEM Parsing to actually check claims
The name ('sub') and the time ('exp') must be checked before letting the reuqest proceed. Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'custodia/message/common.py')
-rw-r--r--custodia/message/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/custodia/message/common.py b/custodia/message/common.py
index 89deb59..25ce4e7 100644
--- a/custodia/message/common.py
+++ b/custodia/message/common.py
@@ -34,7 +34,7 @@ class MessageHandler(object):
self.req = request
self.payload = None
- def parse(self, msg):
+ def parse(self, msg, name):
"""Parses the message.
:param req: the original request