summaryrefslogtreecommitdiff
path: root/src/saml2/validate.py
Commit message (Collapse)AuthorAgeFilesLines
* Replace assert with proper checksassert_deletionIvan Kanakarakis2020-09-111-6/+0
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Fix call to urlparseIvan Kanakarakis2020-05-121-1/+1
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Fix compile warningsIvan Kanakarakis2020-02-101-2/+2
| | | | | | | | | Test for compile warning using: find src/ -iname '*.py' | xargs -P 4 -I{} python -Wall -m py_compile {} find tests/ -iname '*.py' | xargs -P 4 -I{} python -Wall -m py_compile {} Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Extend checks for IPv6 addressesIvan Kanakarakis2019-11-261-40/+16
| | | | | | | | - Make sure enclosing brackets match. - Use the built-in classes/checks for the IPv6/IPv4 address format. - Extend tests to bad cases Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Fix ipv6 validation for addresses with bracketsScott Koranda2019-11-261-0/+2
| | | | | | | | Fix ipv6 validation for addresses that include the brackets, such as [2001:8003:5555:9999:555a:5555:c77:d5c5]. See https://tools.ietf.org/html/rfc4038#section-5.1 regarding the inclusion of brackets in the address. The Shibboleth IdP sends ipv6 addresses that include the brackets.
* Fix date format to show month, not minutesIvan Kanakarakis2018-02-151-1/+1
|
* Fix typo in validate_on_or_after error messageLoïc Padier2017-12-071-2/+2
|
* make exception not_before/notonorafter messages more explicit (formatted ↵r2h22017-08-291-5/+9
| | | | time, slack as different value)
* Fix typo - inproper string formatting API usedJozef2016-06-031-1/+1
| | | Due to this bug, messages were being rendered literally with '%d' characters, missing the actual intended information.
* Fix timestamp validation error messageJozef Knaperek2016-02-031-3/+2
| | | | | | | | | | This fixes 2 things: 1.) First, the values were exchanged according to the comparison order 2.) Second, the slack was not included in the messages, leaving the possibility of printing confusing message. I decided to add or substract (respectively) the slack from "now" instead of nooa/nbefore, since "now" is more volatile and there's a better chance that people could try to search for the nooa/nbefore numbers in the dumps (encapsulated in SAML messages) rather then for the ever-changing value of "now".
* Switched super class to Exception.Roland Hedberg2015-09-181-4/+4
|
* Use explicit exception classes.Roland Hedberg2015-09-181-5/+14
|
* Fix type comparison strictness fail in python3Clint Byrum2015-05-211-1/+1
| | | | In python3 types are more strictly compared sometimes.
* Fix relative import fialure for python3Clint Byrum2015-05-151-1/+1
| | | | Relative imports don't quite work anymore in python3.
* Deal with renamed modules in python3Clint Byrum2015-05-151-2/+2
| | | | | | | six.moves handles some of the reorganized modules. With dircache, it was simply removed as it has been deprecated for a long time. os.listdir performs fine these days.
* Fix python3 syntax errorsClint Byrum2015-05-151-5/+5
| | | | | Retains python2.7 compatibility for all files. Fixes only syntax errors, tests still fail on python3 for various reasons.
* PEP-8Roland Hedberg2014-10-021-28/+28
|
* Refactored the support for metadata extension in the config file.Roland Hedberg2014-03-131-0/+13
|
* Fixed a recursion problem.Roland Hedberg2014-03-111-0/+2
| | | | Minor editorial changes.
* EditorialRoland Hedberg2013-04-151-30/+52
|
* Added support for AuthnQuery.Roland Hedberg2013-01-121-4/+5
|
* Handle 'null' attribute valueRoland Hedberg2013-01-111-5/+22
|
* Added new exceptions.Roland Hedberg2013-01-101-46/+68
| | | | Refactored a couple of lines to something more palatable.
* Initial add0.4.2Roland Hedberg2012-05-231-0/+375