Commit Graph

2706 Commits

Author SHA1 Message Date
Ivan Kanakarakis c54db131dd Merge pull request #436 from jkakavas/master
Change log level for no attribute statements. Resolves #329
2017-07-25 00:22:14 -07:00
Ioannis Kakavas d267b23196 Change log level for no attribute statements. Resolves #329 2017-07-20 11:50:29 +03:00
Ioannis Kakavas 1da840e4dc Merge pull request #428 from bogdan-ds/remote_encoding_fix
Using the binary response content of requests to avoid incorrect metadata encoding
2017-07-18 10:21:23 +03:00
Ioannis Kakavas 0d46e44d26 Merge pull request #433 from c00kiemon5ter/feature-fix-tests-warnings
Fix pytest warnings about deprecated pytest_funcarg__ prefix
2017-07-18 10:20:38 +03:00
Bogdan Despotov 9de2347f23 Added certificate file and referenced it in the corresponding test. Patched MetaDataMDX to avoid same issue there 2017-07-17 13:31:46 +03:00
Bogdan Despotov 7ea88803b6 Adding test to expose issue with validating XML signature due to encoding issues 2017-07-17 10:51:53 +03:00
ivan fe8f11913f Fix pytest warnings about deprecated pytest_funcarg__ prefix 2017-07-12 16:51:24 +03:00
Ioannis Kakavas a490e4759d Merge pull request #432 from c00kiemon5ter/feature-specify-tox-tests
Allow testers to specify test
2017-07-12 16:26:33 +03:00
ivan b4f8c5478e Allow testers to specify test
Until now the command `tox` would run all of the tests.
With this change one can specify a test to be run by running:
  tox -- path/to/test.py
2017-07-12 16:09:04 +03:00
Ioannis Kakavas 8e96bf096e Merge pull request #425 from rectalogic/dsa-sha1
Fix dsa-sha1 signature URLs.
2017-07-12 09:53:14 +03:00
skoranda 63023d227a Merge pull request #423 from jkakavas/fix_attr_filtering
Use the internal representation names instead of metadata FriendlyNames for attributes in order to do name filtering. Solves #422
2017-07-11 06:52:53 -05:00
Ioannis Kakavas f00e0dda06
Modified test cases to include acs in the args
Since acs can't be None ( it get's a value in __init__()
https://github.com/rohe/pysaml2/blob/master/src/saml2/assertion.py#L319)
there is no reason to test for it. So we add a default value to acs
using ac_factory() before passing it to filter_on_attributes
2017-07-06 16:43:43 +03:00
Ioannis Kakavas 5bcb6ac24a
Minor fixes 2017-07-05 19:05:22 +03:00
Bogdan Despotov 7368a49b91 Using the binary response content of requests in order to avoid the metadata xml being saved with incorrect encoding 2017-07-03 14:59:33 +03:00
Andrew Wason 0a6df49f1a Fix dsa-sha1 signature URLs. 2017-06-26 13:49:09 -04:00
Ioannis Kakavas 695e2f0a98
Updated test cases
As explained in
https://github.com/rohe/pysaml2/pull/423#issuecomment-308053607 , ava
cannot contain an 'surName' key, it should be named 'sn'
2017-06-13 12:04:51 +03:00
Ioannis Kakavas c24b47ceba
Base attribute filtering on internal representation names
Instead on relying on the FriendlyName from metadatata, use the name
of the internal representation of an attribute in order to perform
filtering. Resolves #422
2017-06-12 16:57:28 +03:00
Ioannis Kakavas 9d0cc9cdb6 Add failing test for filtering attributes
Added a test that fails when the friendlyName of the requested attribute
is not the same with the name of the internal attribute (even though the
OIDs and the internal representation names of the attribute are the same)
2017-06-12 16:56:00 +03:00
Roland Hedberg 63d3165540 Merge pull request #415 from skoranda/name_id_format_none
Enable deployer to signal no name format in authn request
2017-05-30 09:01:23 +02:00
Roland Hedberg b7b79c988c Merge pull request #418 from WilliamRen/master
fixbug: 'NoneType' object has no attribute 'get_signer'
2017-05-30 09:00:03 +02:00
Roland Hedberg 44d35168fd Merge pull request #420 from leifj/xsi-nil-fix
fix for bad xsi:nil on complex attributevalue
2017-05-30 08:58:27 +02:00
Leif Johansson bf96c83b2d fix for bad xsi:nil on complex attributevalue 2017-05-29 17:35:03 +02:00
william 4012711f8d fixbug: 'NoneType' object has no attribute 'get_signer' 2017-05-25 16:28:19 +08:00
Scott Koranda 0d2e0baf52 Enable deployer to signal no name format in authn request
Enable a deployer to configure name_id_format with the string
'None' to signal that no Format attribute should be included
in the <NameIDPolicy> that is sent with the <AuthnRequest>. A
yaml null is still converted to a Python None that then results
in the default of Format being set to transient, so this patch
does not change default behavior.
2017-05-15 12:54:15 -05:00
Roland Hedberg 8aa80e9e67 Updated README 2017-04-24 16:09:52 +02:00
Roland Hedberg 9e0f8afece Merge pull request #407 from cemiarni/master
Fix some ECP problems
2017-04-24 16:00:02 +02:00
Roland Hedberg 91bce29d7f Merge branch 'master' of github.com:rohe/pysaml2 2017-04-24 15:46:35 +02:00
Roland Hedberg e2adbb523c Removed while investigating pyasn1 usage 2017-04-24 15:46:07 +02:00
Roland Hedberg 3ee85092e3 'scoping' not i kwargs 2017-04-24 15:45:46 +02:00
Roland Hedberg 47e1b34f6c Merge pull request #409 from johanlundberg/name_id_policy_allow_create_from_conf
Allow to configuration option name_id_format_allow_create for sp config
2017-04-24 13:38:51 +02:00
Johan Lundberg a1cef866e2
Missing test dependency 2017-04-21 15:50:48 +02:00
Johan Lundberg 4c6e454ee5
Allow to configuration option name_id_format_allow_create for sp config 2017-04-21 14:21:21 +02:00
Czémán Arnold d99bee3693 Fix some ECP problems 2017-04-15 23:42:49 +02:00
Roland Hedberg a0c510af7a Merge pull request #385 from sigmavirus24/move-to-cryptography
Swap pycrypto* for pyca/cryptography
2017-01-24 18:21:33 +01:00
Paul Kehrer afdf5b4a8c Swap pycrypto* for pyca/cryptography
pyOpenSSL is already a dependency and pyOpenSSL uses cryptography.
This also reduces the complexity of the code significantly in several
places (and removes the need to directly manipulate asn1). A future
PR could remove pyOpenSSL entirely as all the cert behavior is supported
directly by cryptography.
2017-01-12 14:22:02 -06:00
Roland Hedberg 08815f9322 Merge pull request #384 from ghostrocket/master
Latest version is 4.4.0 not 4.0.4
2017-01-05 11:51:33 +01:00
Keith Fitzgerald 3bffd9d711 Latest version is 4.4.0 not 4.0.4 2016-12-20 09:50:06 -05:00
Roland Hedberg 8c2b0529ef Merge pull request #379 from fruechel/master
Fix XXE in XML parsing (related to #366)
2016-11-02 15:04:48 -07:00
Florian Rüchel 6e09a25d9b Fix XXE in XML parsing (related to #366)
This fixes XXE issues on anything where pysaml2 parses XML directly as part of
issue #366. It doesn't address the xmlsec issues discussed on that ticket as
they are out of reach of a direct fix and need the underlying library to fix
this issue.
2016-10-31 11:56:48 +11:00
roland 78261b9ae1 Release version 2016-10-26 11:39:42 -07:00
Roland Hedberg b8c1ae7504 Merge pull request #375 from dsully/master
Use importlib in place of backports.test.support
2016-10-26 11:37:39 -07:00
Dan Sully 73d5897e22 Fix accidental import removal. 2016-10-26 11:23:01 -04:00
Dan Sully 2e0035e4fa Fix import_module call. 2016-10-26 10:49:22 -04:00
Roland Hedberg a58318e4b9 Merge pull request #372 from ashimaathri/update-readme-with-testing
Update README with instructions for testing
2016-10-26 07:41:09 -07:00
Dan Sully 5c63aa6f88 Remove (undeclared dependency) usage of backports.test.support. This was
pulling in `unittest2` as a runtime dependency instead of a test
dependency. It's also really not needed, as the functionality that it
provides was not being called. Just use importlib instead.

Remove unused functions in s_utils.py
2016-10-26 10:20:22 -04:00
Ashima Athri 4c4f2f4b09 Update readme with instructions for running tests locally 2016-10-20 09:27:26 -04:00
Ashima Athri a9800192a5 Refactor test dependencies 2016-10-19 19:01:26 -04:00
Ashima Athri d0f7f5b0b1 Ignore virtualenv env and tox files 2016-10-19 19:00:16 -04:00
Roland Hedberg ccb842d20b Release version 2016-10-14 10:06:51 +02:00
Roland Hedberg 0f08f625f8 Merge pull request #363 from maykinmedia/do-not-overwrite-cache
Do not overwrite cache
2016-10-12 17:21:52 +02:00