summaryrefslogtreecommitdiff
path: root/src/saml2/saml.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow non ascii characters in avaJohan Lundberg2018-10-041-1/+1
|
* Allow any namespace prefixIvan Kanakarakis2018-09-061-33/+45
| | | | | | | | | | If the xsd string comes with a namespace prefix, it is left intact. If the xsd string has no namespace prefix and the xsd type is known, the xsd namespace is set to 'xs'. If the xsd string has no namespace and the type is unknown, the xsd namespace is left empty. Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Remove redundant and unused functionsIvan Kanakarakis2018-09-061-42/+0
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Improve namingIvan Kanakarakis2018-09-061-25/+29
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Handle Python3 str and Python2 unicode uniformlyIvan Kanakarakis2018-09-061-26/+38
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Combine dicts based on xs_typeIvan Kanakarakis2018-09-041-52/+68
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Do not mess with the value if xs:type is anyTypeIvan Kanakarakis2018-09-041-9/+4
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Work on set_textIvan Kanakarakis2018-09-041-61/+85
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Merge pull request #538 from sheilatron/Docstrings4LearningIvan Kanakarakis2018-08-241-1/+10
|\ | | | | Improve docstring for NameID and argtree.add_path
| * Docstring explanation of the NameID elementSheila Allen2018-08-141-1/+10
| |
* | Raise ValueError for invalid attribute typeColleen Murphy2018-08-151-1/+1
|/ | | | | | | | | | | Without this patch, the AttributeValueBase set_text method checks for a valid xsi:type before setting the text value, but when it gets to the catchall case, instead of raising an exception it simply creates an unassigned ValueError instance and does nothing with it. This is clearly not intentional, and it is a problem because it means it is possible to set an invalid xsi:type for an AttributeValue. This patch corrects the error by raising the ValueError exception rather than letting it disappear into the ether.
* Fix deprecation and resource warnings.Ivan Kanakarakis2018-08-021-14/+10
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Add more nameid-format definitionsIvan Kanakarakis2018-07-071-6/+12
| | | | | | | | | In accordance to Section _8.3 Name Identifier Format Identifiers_ of the SAML2-core specification. Only new definitions are added. Usage is not supported yet. Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Remove invalid nameid-formatIvan Kanakarakis2018-07-071-3/+1
| | | | | | | | | | The nameid format urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified is invalid and not specified by any spec. Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* fix for bad xsi:nil on complex attributevalueLeif Johansson2017-05-291-3/+5
|
* It's cleaner to conditionally add this attributeAshima Athri2016-10-061-2/+7
| | | | As per @jgehrcke's comment
* Add a namespace for AttributeValue xsi:type valueAshima Athri2016-10-051-0/+2
| | | | | | | | | This fixes the issue when integrating with onelogin's python3-saml client: Element '{urn:oasis:names:tc:SAML:2.0:assertion}AttributeValue', attribute '{http://www.w3.org/2001/XMLSchema-instance}type': The QName value 'xs:string' has no corresponding namespace declaration in scope.
* Slowly moving from six to future.backportsRoland Hedberg2016-03-091-2/+5
| | | | pycryptodomex from pypi now constructs Cryptodome module on OS X too.
* 'AsTime' validator should be 'dateTime'Andrew Wason2016-01-281-1/+1
|
* Fix basic python3 issues in test_02_samlClint Byrum2015-05-281-1/+1
| | | | | | - Strings/bytes encoding/decoding where necessary. - Random hash seed producing test fails sometimes on keys(), sorting lists fixes this.
* Correct python3-incompatible assumptionsClint Byrum2015-05-281-0/+2
| | | | | The s_utils tests reveal some incompatibilities with python2-specific behaviors being assumed.
* Use six.string_types instead of basestringClint Byrum2015-05-151-1/+2
| | | | | | | In python3 strings are different, so basestring isn't available anymore. While examining these uses, all of them still work fine with six.string_types and should not need any new special handling to deal with bytes.
* Remove iteritems from dict loops for python3Clint Byrum2015-05-151-1/+1
| | | | Python3 has removed this and made .items() a view.
* Fix python3 syntax errorsClint Byrum2015-05-151-2/+2
| | | | | Retains python2.7 compatibility for all files. Fixes only syntax errors, tests still fail on python3 for various reasons.
* Moved s2repoze, xmkdsig and xmlenc under saml2.Roland Hedberg2015-05-151-2/+2
| | | | Fixed bug in mdstore.MetadataStore in handling external metadata using the new config format.
* Messed up the documentation. Now trying to fix it.Roland Hedberg2014-10-281-1/+1
|
* Merge pull request #156 from erickt/expose-unspecified1Roland Hedberg2014-10-261-2/+2
|\ | | | | Expose NAMEID_FORMAT_UNSPECIFIED1
| * Expose NAMEID_FORMAT_UNSPECIFIED1Erick Tryzelaar2014-10-231-2/+2
| |
* | use NAME_FORMAT_URI as default fallback nameFormat for better compatibility ↵Patrick Brosi2014-10-081-1/+1
|/ | | | with ADFS
* extended API with lists for supported NameID formats, AttributeName formats, ↵rhoerbe2014-08-111-2/+13
| | | | digest and sig algs
* Remove xsi:nil from extension_attributes if there is a value.Roland Hedberg2014-04-121-0/+2
|
* Made all exceptions inherit from a basic pySAML2 exception.Roland Hedberg2013-06-141-1/+3
|
* EditorialRoland Hedberg2013-04-151-452/+508
|
* Refactored out session information storage.Roland Hedberg2013-03-111-8/+8
|
* PEP-8Roland Hedberg2013-03-091-19/+11
|
* Static variables for the standard consent types.Roland Hedberg2013-01-311-0/+6
|
* Fixed some AttributeValue problemsRoland Hedberg2013-01-121-9/+32
|
* Handle 'null' attribute valueRoland Hedberg2013-01-111-12/+67
|
* Added a couple of message/element/class specific verify methodsRoland Hedberg2013-01-101-1/+50
|
* Subject confirmation methods updateRoland Hedberg2013-01-091-1/+4
|
* Request preparation refactoringRoland Hedberg2012-12-291-0/+5
|
* EditorialRoland Hedberg2012-12-061-13/+34
|
* cleared codeRoland Hedberg2012-11-271-33/+82
|
* clean upRoland Hedberg2012-06-131-2/+1
| | | | | Added missing character The code in encdec.py is just a placeholder for the time being, don't use it ! It doesn't work !
* Initial add0.4.2Roland Hedberg2012-05-231-0/+1585