summaryrefslogtreecommitdiffstats
path: root/custodia/message/formats.py
Commit message (Collapse)AuthorAgeFilesLines
* Make tox pep8 happySimo Sorce2015-10-191-2/+2
| | | | | Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Christian Heimes <cheimes@redhat.com>
* Change KEM Parsing to actually check claimsSimo Sorce2015-06-041-2/+2
| | | | | | | The name ('sub') and the time ('exp') must be checked before letting the reuqest proceed. Signed-off-by: Simo Sorce <simo@redhat.com>
* Properly handle inputs from a query stringSimo Sorce2015-05-261-9/+21
| | | | | | | parse_qs will always return lists even for single-valued parameters, check for it in the Validator and properly handle the case. Signed-off-by: Simo Sorce <simo@redhat.com>
* Add support for signed/encrypted messagesSimo Sorce2015-04-271-2/+4
| | | | | | | | | The new 'kem' type allows the backend to authorize access to keys based on a signed request where the key mus be whitelisted in advance in a kemkeys database. The reply is encrypted with the client public key. Signed-off-by: Simo Sorce <simo@redhat.com>
* Move message parsing and validationSimo Sorce2015-04-201-0/+49
Create a message module to deal with message types and validation. Signed-off-by: Simo Sorce <simo@redhat.com>