summaryrefslogtreecommitdiffstats
path: root/bindings/python
Commit message (Collapse)AuthorAgeFilesLines
* bindings/python/tests: session indexes storage preserves order nowHEADmasterBenjamin Dauvergne2014-06-081-2/+1
|
* bindings/python: fix conversion of unicode value to UTF-8 for settersBenjamin Dauvergne2014-05-281-1/+1
|
* Fix generators for parsing of integer valuesSimo Sorce2014-04-231-2/+2
| | | | | | | | | | | | | All number types including enums are parse as if they were integers, this breaks in many ways, long and int are not the same size in all architectures as well as enum may vary in size depening on compiler, architecture and optimizations. Always pass an actual long to PyArg_ParseTuple() and rely on the a cast from long to the destination variable type in the following assignment. Signed-off-by: Simo Sorce <simo@redhat.com>
* bindings/python: automatically encode string into utf-8 when passing unicode ↵Benjamin Dauvergne2013-12-111-0/+13
| | | | | | string to Lasso methods fixes #4077
* Fix license boilerplatesSimo Sorce2013-12-037-14/+7
| | | | | | | Instad of referring to an old FSF address, point the reader to the FSF website where the latest licenses and addresses are published. Signed-off-by: Simo Sorce <simo@redhat.com>
* python: do not fail displaying a non-C error (fixes #3866)Frédéric Péters2013-10-231-1/+4
| | | | | | | | | | The binding does a raise Error('failed to create object') but the local Error exception class expects a lasso error code, and will thus fail if printed. File ".../lasso.py", line 54, in __str__ return '<lasso.%s(%s): %s>' % (self.__class__.__name__, self.code, _lasso.strError(self.code)) TypeError: an integer is required
* Merge remote-tracking branch 'origin/libxml2.9-compat'Benjamin Dauvergne2013-07-301-11/+23
|\
| * Rewrite all xmlNode serialization code to be compatible with libxml 2.9.0Benjamin Dauvergne2012-09-281-11/+23
| | | | | | | | | | | | | | | | | | | | Libxml stopped exposing the internal of the xmlOutputBuffer structure; it was replace by proper use of the API and of the xmlBuffer structure. There could be regression for older version of libxml as some functions appeared in recent version of libxml; but the reference API document does not give any introduction date for functions so it's hard to be sure.
* | python: fix logout request parsing testBenjamin Dauvergne2013-03-201-0/+4
|/ | | | adapt to new checks done on logout request nodes
* tests: add a SSO test with DSA keys to python bindings testsBenjamin Dauvergne2012-07-111-0/+28
|
* [bindings/python] in constructors wrappers build the return value beforeBenjamin Dauvergne2012-05-051-10/+11
|
* [bindings/python] free xmlnode argument owned by the calleeBenjamin Dauvergne2012-05-051-0/+2
|
* [bindings/python] fix some indentationBenjamin Dauvergne2012-05-051-1/+1
|
* [bindings/python] boolean values does not need to be releasedBenjamin Dauvergne2012-05-051-2/+2
|
* [tests] fix tests to comply with new implementation of parsingBenjamin Dauvergne2011-12-161-4/+4
| | | | | The test around parsing of EncryptedAssertion was wrong since it was missing the XMLEnc namespace declaration.
* [binding python] prevent warning in wrapper_top.c under hardy with gcc 4.2.4Benjamin Dauvergne2011-11-181-1/+2
|
* [bindings python] configure basic loggingBenjamin Dauvergne2011-01-043-0/+9
|
* [bindings python] make constructor failure raise a lasso.Error exceptionBenjamin Dauvergne2010-12-141-1/+1
|
* [Strings] add string constant for the internal XML attributes used in dumpsBenjamin Dauvergne2010-09-031-1/+1
| | | | | | | | | Add string constants for signature method, signature type, private key (file path or content), private key password and certificate (file path or content). Add cast for xmlChar constant strings definition in python bindings, it assumed all constant strings were char*.
* [Bindings] improve cleaning and distribution buidingBenjamin Dauvergne2010-07-212-4/+4
|
* [Tests/python] add test case for WebSSO with providers using encrypted keysBenjamin Dauvergne2010-07-161-3/+29
|
* [Python binding] do not throw lasso.Error for python exceptionsBenjamin Dauvergne2010-07-051-1/+1
|
* [Bindings] accept simple string in string<->xmlNode converterBenjamin Dauvergne2010-06-291-11/+4
| | | | | | | | | | Some use case ask for passing simple libxml content node (i.e just an UTF-8 string) when a method argument or a field of the xmlNode* type. This commit add a static method in bindings/utils.c named lasso_string_fragment_to_xmlnode which does this transform by trying to parse an XML document then by trying to parse a well balanced XML fragment of only one node (if there is more than one node such as in the string " xxx <tag/> yyy ", we free the node list and return NULL).
* [ID-WSF2] add idwsf2 test script to test suiteBenjamin Dauvergne2010-06-292-3/+7
| | | | | Re-activate ID-WSF 2.0 test script. Fix problem with provider issuing assertion role. Need to be fixed more generally in the future.
* Merge branch 'issue-88'Benjamin Dauvergne2010-06-292-16/+36
|
* Merge branch 'issue-86'Benjamin Dauvergne2010-06-291-1/+18
|
* Test: add non regression test for reloading a server dump with encrypted keysBenjamin Dauvergne2010-06-141-0/+13
|
* Binding python: fix freeing of list return values for methods with the ↵Benjamin Dauvergne2010-06-141-3/+3
| | | | | | transfer full flag The output 'print' were missing, oups :(
* Binding python: find a work around for random behaviour of PyImport_ImportModuleBenjamin Dauvergne2010-06-121-2/+6
| | | | | | | * it seems that PyImport_ImportModule is not deterministic. Sometimes it returns True for modules which we know are present ('logging'). Importing 'sys' first seems to make 'logging' accessible (complete cargo cult programming).
* Test: add python test for attribute requestingBenjamin Dauvergne2010-06-121-1/+58
| | | | | | | | | | | | | * What's tested: - request initialization - adding attribute designators - building the request message - processing the request message - accepting the request - adding assertion with attributes - signing the assertion - building the response - parsing the response
* Binding python: fix bad refcounting in get_logger and lasso_python_logBenjamin Dauvergne2010-06-121-7/+13
|
* Tests: new python test for setEncryptionPrivateKeyWithPasswordBenjamin Dauvergne2010-06-101-0/+12
|
* Binding python: if lasso.logger exists use it for loggingBenjamin Dauvergne2010-06-101-8/+28
| | | | | | * There is now two paths to get a logger in the python binding: - first try to get an objet from lasso.logger - if it doesn't exist or is None, the try logging.getLogger('lasso')
* Binding python: call lasso_init() first in init_lasso()Benjamin Dauvergne2010-06-092-2/+1
|
* Binding python: add GLog handler to redirect logs to Python logger named "lasso"Benjamin Dauvergne2010-06-092-0/+44
| | | | * fixes #20
* Bindings: keep retro compatibility for member field namesBenjamin Dauvergne2010-06-061-0/+3
| | | | | | | * Special kludge price go to PHP: methods name are insensitive so nothing to do here, BUT, if you use getters/setters then your objects fields can be case insensitive too ;-) (DNS, dns, DnS, dNs all maps to get_dns ).
* Binding python tests: update idwsf1 to explicitely register PP10 HREFBenjamin Dauvergne2010-04-061-0/+1
|
* Binding python: update idwsf2 test for method change dst.initResponse -> ↵Benjamin Dauvergne2010-04-061-1/+1
| | | | validateRequest
* Binding python: fix use of raise_on_rc, simplift Node.__setstate__Benjamin Dauvergne2010-04-061-7/+6
|
* Binding python: for empty GList return empty tuples, not NoneBenjamin Dauvergne2010-04-062-18/+18
|
* Binding python: fix problem of classes without an initializerBenjamin Dauvergne2010-03-271-5/+7
|
* ID-WSF 2.0 python tests: finish tests for new ID-WSF 2.0 APIBenjamin Dauvergne2010-03-021-26/+157
| | | | | | | * bindings/python/tests/idwsf2_tests.py: all Discovery service request types are tested, and Data Service query is tested as well. Data Service testing and API should more tested, especially failure cases.
* Binding python: accept a functio as setter, if it has only two argumentsBenjamin Dauvergne2010-03-021-1/+1
|
* Bindings python: use more accessors from utils.pyBenjamin Dauvergne2010-02-221-41/+31
| | | | | * binings/python/lang.py: remove direct access to type tuples in favor of using accesors from utils.py.
* Binding python: add pickling support to LassoNodeBenjamin Dauvergne2010-02-221-0/+10
| | | | | | | * bindings/python/lang.py: support pickling protocol methods __getstate__ and __setstate__ leveraging the lasso_node_dump and lasso_node_new_from_dump methods from Lasso.
* Bindings python tests: update idwsf2_tests.pyBenjamin Dauvergne2010-02-221-1359/+160
|
* Current state of ID-WSF 2.0 python testBenjamin Dauvergne2010-02-171-6/+76
|
* Current state of idwsf2 testsBenjamin Dauvergne2010-02-171-44/+59
|
* Binding python: simplify special constructor, use cptrToPyBenjamin Dauvergne2010-02-171-5/+1
|
* Binding python tests: adapt test to use TOP_SRCDIR env varBenjamin Dauvergne2010-02-172-4/+4
|