summaryrefslogtreecommitdiff
path: root/src/saml2/mdstore.py
Commit message (Collapse)AuthorAgeFilesLines
* Replace assert with proper checksassert_deletionIvan Kanakarakis2020-09-111-6/+2
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Reformat and rearrange codeIvan Kanakarakis2019-12-261-50/+64
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Remove unused default valueNikos Sklikas2019-12-261-1/+1
|
* Add freshness period feature for MetaDataMDXNikos Sklikas2019-12-261-16/+39
| | | | | Add a configurable period for which the metadata is valid, this is only available when using MDX.
* Fix exception name typoIvan Kanakarakis2019-12-171-1/+5
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Convenience method for getting supported algorithms from metadataJohan Lundberg2019-12-161-0/+34
|
* Add mdstore method to extract assurance certificationsIvan Kanakarakis2019-11-211-0/+10
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Add mdstore method to extract contact_person dataIvan Kanakarakis2019-11-211-0/+24
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Improve mdstore methods that extract mdui uiinfo subelementsIvan Kanakarakis2019-10-311-59/+40
| | | | | | | | - Do not raise KeyError if entity-id is wrong - Keep only the generator form; as more perfomant and generic - Generalize internal searchers Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Do not set a preferred language for uiinfo elementsIvan Kanakarakis2019-10-091-9/+9
| | | | | | | The return values are list of text values. By default return, all possible values. Users need to specify their own preference and choose whether they need one or more values. Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Add mdstore methods to extract mdui uiinfo subelementsIvan Kanakarakis2019-10-081-0/+108
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Add mdstore method to extract mdui uiinfo elementsIvan Kanakarakis2019-10-081-0/+35
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Generate class names for metadata elementsIvan Kanakarakis2019-10-081-13/+17
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Various typo fixesKalevi Vázquez Tuisku2019-08-251-1/+1
|
* Typo in commentLiam Kinney2019-05-081-1/+1
|
* Remove whitespaceIvan Kanakarakis2018-12-111-3/+3
| | | | Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
* Fix typo and remove redundant argumentScott Koranda2018-12-051-2/+2
|
* Enable signature verification for MDQScott Koranda2018-12-051-6/+35
| | | | | | | Add functionality to allow configuration of signature verification for metadata obtained using the MDQ protocol. Support is limited to checking the signature of a response containing a single entity and not multiple entities.
* Merge pull request #471 from mrvanes/patch-1Ivan Kanakarakis2018-03-061-1/+1
|\ | | | | Strip trailing mdq slash
| * Strip trailing mdq slashMartin2017-10-301-1/+1
| | | | | | Having been bitten by trailing slash errors while configuring mdq I thought it'd be nice to protect others from such a frustrating typo.
* | Clean up unclosed files causing ResourceWarnings in testsJon Dufresne2017-10-111-2/+5
|/ | | | | | | * Use better subprocess functions to correctly close pipes. * When opening files, use a context manager to ensure file is closed in a deterministic way. * Close logging handlers
* Added certificate file and referenced it in the corresponding test. Patched ↵Bogdan Despotov2017-07-171-1/+1
| | | | MetaDataMDX to avoid same issue there
* Using the binary response content of requests in order to avoid the metadata ↵Bogdan Despotov2017-07-031-1/+1
| | | | xml being saved with incorrect encoding
* Fix import_module call.Dan Sully2016-10-261-1/+1
|
* Remove (undeclared dependency) usage of backports.test.support. This wasDan Sully2016-10-261-5/+5
| | | | | | | | 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
* Merge pull request #357 from rebeckag/metadata-extensionRoland Hedberg2016-09-221-4/+3
|\ | | | | Fix bug in MetadataStore.extension().
| * Fix bug in MetadataStore.extension().Rebecka Gulliksson2016-09-151-4/+3
| | | | | | | | | | | | Continue with the next metadata source if the entity id or the expected type (SP or IDP) SSO descriptor is not found in the current metadata source instead of prematurely returning.
* | Merge pull request #355 from rebeckag/mdq-mdRoland Hedberg2016-09-221-0/+3
|\ \ | |/ |/| Recognize MDQ metadata storage from config.
| * Recognize MDQ metadata storage from config.Rebecka Gulliksson2016-09-061-0/+3
| |
* | A second any method that is faster then the first.Roland Hedberg2016-05-261-1/+32
| |
* | TO deal with Python3 returning not list but dict_items.Roland Hedberg2016-05-181-1/+1
|/
* Merge pull request #330 from rebeckag/remote-md_format_checkRoland Hedberg2016-05-141-0/+2
|\ | | | | Explicitly signal incorrect 'remote' metadata conf.
| * Explicitly signal incorrect 'remote' metadata conf.Rebecka Gulliksson2016-05-031-0/+2
| |
* | Added functionality needed by the saml2test tool.Roland Hedberg2016-04-161-6/+6
| |
* | add_header method and returning a byte string.Roland Hedberg2016-04-111-11/+14
|/ | | | | Fixed some PY3 problems service_per_endpoint method useful when setting up an entity instance.
* Reworked the security backend so you should now be able to use a HSM again ↵Roland Hedberg2015-12-111-1/+4
| | | | for XML security. Support for non-XML crypto using HSMs are on the way.
* Merge branch 'master' of github.com:rohe/pysaml2Roland Hedberg2015-12-111-2/+18
|\
| * Adds support for getting extension elements from metadata.Rebecka Gulliksson2015-12-101-2/+18
| |
* | Made MetaData instances pickleable.Roland Hedberg2015-12-011-31/+54
|/
* Fixed a problem in parsing metadata extensions.Roland Hedberg2015-11-181-26/+47
|
* Don't assume KeyDescriptor exists in metadata, since it is optional.Rebecka Gulliksson2015-11-161-13/+14
|
* Refactor Metadata.certs() and move it to base class.Rebecka Gulliksson2015-11-161-82/+39
|
* Merge branch 'master' of github.com:rohe/pysaml2Roland Hedberg2015-11-131-1/+1
|\
| * Open metadata in binary mode for Python 3 compatibility.Oleg Girko2015-11-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 3 handles character data read from a file differently than Python 2 does. Python 3 opens files in text mode by default, causing file reads to return string data decoded from file using encoding specified as argument of open() builtin function. If encoding is not specified, open() uses some default encoding that can even be ASCII. Hence, using open() in text mode without specifying encoding is dangerous in Python 3 and can lead to unexpected results. However, it's safe to open metadata in binary mode, it gets encoded to UTF-8 later anyway. Signed-off-by: Oleg Girko <ol@infoserver.lv>
* | Need to know which entity descriptors that has been reject because they ↵Roland Hedberg2015-11-131-11/+23
|/ | | | where to old.
* Fix paramter passing in logging messagesJozef Knaperek2015-10-151-12/+12
| | | | | | | | Pass parameters into logger calls directly instead of pre-merging with the logger message. This way the logs are easier to maintain and process. The code is also faster when logging is turned off since it doesn't have to evaluate all params and render them into strings.
* Applied pull request #206Roland Hedberg2015-09-071-1/+1
|
* Allow for not specifying a certificate when importing a metadata file over ↵Roland Hedberg2015-05-281-0/+4
| | | | the net.
* Providing a certificate when the metadata is not signed should not result in ↵Roland Hedberg2015-05-271-44/+61
| | | | an error. Refactored the code so there is less duplication.
* Fix missing 'file' keyword for python3Clint Byrum2015-05-211-1/+1
| | | | | This was an oversight, and accidental that 'file' would be missed, but 'filename' was seemingly intended.