Commit Graph

37 Commits

Author SHA1 Message Date
Benjamin Dauvergne b763241411 Bindings: skip ID-WSF methods with unsupported signatures
* bindings/overrides.xml:
   some functions have output parameters (pointer on pointers) that are
   currently not supported by our binding generator, so we skip them.
2009-08-26 15:14:20 +00:00
Benjamin Dauvergne 962a5d2403 new function lasso_profile_get_server()
* lasso/id-ff/profile.c:
 * lasso/id-ff/profile.h:
   in a move to try to remove direct access to object content, add a
   function to retrieve the LassoServer object of a LassoProfile.
 * bindings/overrides.xml:
   it conflicts with direct access to the public field server, so we do
   not export it in the binding for now.
2009-04-27 08:19:30 +00:00
Benjamin Dauvergne 12744e44fe SAML 2.0: API for Saml2EncryptedElement decrypt
* lasso/xml/xml_enc.h:
   remove old functions
 * lasso/xml/private.h:
   remove lasso_node_(de/en)crypt from public headers API, they were not
   exported anyway. move them to internal header.
 * lasso/xml/saml-2.0/saml2_encrypted_element.{c,h}:
   add a new decrypt function to convert a EncryptedElement to the
   contained encrypted node objects.
 * bindings/overrrides.xml:
   do not export the new method, wait for implementation of output
   arguments.
 * lasso/id-ff/server.c:
   remove lasso_decrypt_nameid from lasso/id-ff/server.c
2009-03-27 15:04:49 +00:00
Benjamin Dauvergne 152ec6d42e Many fix to compile with --enable-wsf and --enable-debugging and also to
remove valgrind errors through python tests.

1. Rename lasso_wsf_profile_new_full for java bindings (cannot subclass
   in overrides of static methods).
2. Add const modifiers to many functon signatures in
   bindings/python/wrapper_top.c.
3. add initialisation of private_data->encryption_sym_key_type (to
   please valgrind) in instance_init of LassoProvider.
4. Add new macro to assign xmlNode, we consider xmlNode to be an
   immutable value, and always use xmlCopyNode for assignment. The
   macros is called named lasso_assign_node.
5. Fix segfault, when using xmlSec to encrypt the newly created
   encrypted node replace the original node inside the xmlDoc structure,
   and the original node is freed automatically. So you cannot borrow
   the encrypted if you do not remove it from xmlDoc first.
2008-09-23 09:13:09 +00:00
Damien Laniel dd0e7143ee don't put registry functions in the bindings 2008-09-03 16:30:51 +00:00
Benjamin Dauvergne 1a058b6037 remove useless overriding 2008-08-01 14:11:51 +00:00
Benjamin Dauvergne 76d9fce5d5 forked lasso branch for adeline 2008-08-01 14:08:54 +00:00
Frédéric Péters 621eec08b5 provider_id is optional in lasso_session_get_assertions 2008-05-29 11:08:31 +00:00
Benjamin Dauvergne 3662b5f4db return of lasso_server_get_svc_metadatas so return_owner = False 2008-05-28 09:33:26 +00:00
Benjamin Dauvergne af6235e90a add qualifier for the GList returned by lasso_server_get_svc_metadatas 2008-05-26 22:58:24 +00:00
Frédéric Péters a68236666f last argument to check_version was optional with the SWIG bindings 2008-05-26 16:41:12 +00:00
Damien Laniel 23fdb5641e allows querying a list of items with ID-WSF 2.0 data service 2008-05-14 18:16:30 +00:00
Frédéric Péters 4fc7014324 [project @ fpeters@0d.be-20080423100400-sbs984j19ik6dxzi]
merge


Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-04-23 12:04:00.477000+02:00
2008-04-29 12:10:36 +00:00
Frédéric Péters 8b97995ec7 [project @ fpeters@0d.be-20080406135913-4sxje4sifk407jna]
support for methods returning GList* of LassoNode*

Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-04-06 15:59:13.889000+02:00
2008-04-29 12:09:51 +00:00
Frédéric Péters 2fbda41c8e [project @ fpeters@0d.be-20080406111623-pf8iq94lrfu2w2un]
extended the skip attribute to accept more values

Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-04-06 13:16:23.574000+02:00
2008-04-29 12:09:47 +00:00
Frédéric Péters ff3228dd00 [project @ fpeters@0d.be-20080406100353-gauqob9b1238gw9o]
functions that are not owner of their return type

Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-04-06 12:03:53.304000+02:00
2008-04-29 12:09:35 +00:00
Frédéric Péters 9c7e431d4f [project @ fpeters@0d.be-20080405220112-hv62do6qtb8itkxw]
optional parameters for LassoDiscovery and LassoDataService

Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-04-06 00:01:12.703000+02:00
2008-04-29 12:09:27 +00:00
Frédéric Péters 09f41a733e [project @ fpeters@0d.be-20080405184728-xay3dzjeq41suxav]
added remaining optional parameters that were defined in the swig bindings

Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-04-05 20:47:28.881000+02:00
2008-04-29 12:09:15 +00:00
Frédéric Péters 2a7d065cc3 [project @ fpeters@0d.be-20080403104659-tio35cweqbl32auj]
lasso_idwsf2_discovery_metadata_register_self has its last parameter optional

Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-04-03 12:46:59.281000+02:00
2008-04-29 12:08:59 +00:00
Frédéric Péters 81ef2515ce [project @ fpeters@0d.be-20080326094754-cw66nuog62q06ekk]
merging benjamin branch

Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-03-26 10:47:54.384000+01:00
2008-04-29 12:08:43 +00:00
Frédéric Péters 1123dac682 [project @ fpeters@0d.be-20080326084502-krmekmh7mokemn18]
possibility to qualify GList* parameters

Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-03-26 09:45:02.789000+01:00
2008-04-29 12:08:35 +00:00
Frédéric Péters 33ae3080ea [project @ fpeters@0d.be-20080325181554-raqz9a721r2vjo5t]
return type qualifier to know what is the content of a GList*

Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-03-25 19:15:54.747000+01:00
2008-04-29 12:08:31 +00:00
Frédéric Péters 7b549d0ce3 [project @ fpeters@0d.be-20080325172346-eitu3onvzps4b30z]
merging benjamin stuff and adding --enable-id-wsf when id-wsf is asked


Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-03-25 18:23:46.535000+01:00
2008-04-29 12:08:27 +00:00
Frédéric Péters 4e43c605c2 [project @ fpeters@0d.be-20080309152828-pw4gd3lcm7rb7dxd]
merging benjamin branch


Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-03-09 16:28:28.854000+01:00
2008-04-29 12:07:59 +00:00
Frédéric Péters 04960b6de8 [project @ fpeters@0d.be-20080227102117-mbx90lw49ty9vfq9]
rename lasso_profile_is_identity_dirty to lasso_profile_has_dirty_identity
(and ditto with s/identity/session/) to provide both correct documentation
and backward compatibility in Python bindings


Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-02-27 11:21:17.023000+01:00
2008-04-29 12:07:47 +00:00
Frédéric Péters 0a00f09894 [project @ fpeters@0d.be-20080225121334-yi07nl8kefuefhk9]
benjamin branch

Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-02-25 13:13:34.475000+01:00
2008-04-29 12:07:23 +00:00
Frédéric Péters b2c6027ad1 [project @ fpeters@0d.be-20080222093656-l6a09ccadxdz9qrs]
merging benjamin branch

Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-02-22 10:36:56.421000+01:00
2008-04-29 12:07:06 +00:00
Frédéric Péters 3b93e1b952 [project @ fpeters@0d.be-20080217115557-8qtcrc1vzb75f75c]
merged Benjamin branch


Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-02-17 12:55:57.088000+01:00
2008-04-29 12:06:30 +00:00
Frédéric Péters 8e660b7eb3 [project @ fpeters@0d.be-20071115161633-6e49xtjy7dgqxm3r]
added special support for functions that return a borrowed reference to
a GObject*.


Original author: Frederic Peters <fpeters@0d.be>
Date: 2007-11-15 17:16:33.298000+01:00
2008-04-29 12:05:51 +00:00
Frédéric Péters 0ac403922f [project @ fpeters@0d.be-20071113015838-961yf93m001amgi1]
merging Damien branch


Original author: Frederic Peters <fpeters@0d.be>
Date: 2007-11-13 02:58:38.825000+01:00
2008-04-29 12:05:12 +00:00
Frédéric Péters 66001f32ce [project @ fpeters@0d.be-20071111215225-xo2v0iwwjw74rqyp]
override lasso_profile_get_nameIdentifier to be renamed to
lasso_profile_get_federation_nameIdentifier in bindings, so it doesn't shadow
the LassoProfile::nameIdentifier member.


Original author: Frederic Peters <fpeters@0d.be>
Date: 2007-11-11 22:52:25.286000+01:00
2008-04-29 12:05:00 +00:00
Frédéric Péters dedaa6e0ee [project @ fpeters@0d.be-20071101183642-85c94st4sjujh4sr]
added special support required for SAML2_SUPPORT and WSF_SUPPORT constants


Original author: Frederic Peters <fpeters@0d.be>
Date: 2007-11-01 19:36:42.776000+01:00
2008-04-29 12:04:28 +00:00
Frédéric Péters dd8b9a38fb [project @ fpeters@0d.be-20071101181800-r94oeih0q8hplrxo]
added support for standalone functions in lasso wrapper; and added renames
for a bunch of them


Original author: Frederic Peters <fpeters@0d.be>
Date: 2007-11-01 19:18:00.896000+01:00
2008-04-29 12:04:24 +00:00
Frédéric Péters 31d1c63642 [project @ fpeters@0d.be-20071101153722-f7053pg8s6x5rpst]
added comments to file, and added optional args definition to lasso_provider_new


Original author: Frederic Peters <fpeters@0d.be>
Date: 2007-11-01 16:37:22.975000+01:00
2008-04-29 12:03:56 +00:00
Frédéric Péters 5a0a4a48c8 [project @ fpeters@0d.be-20071006183919-bv96kzjkqzho9p5s]
added support for non-None optional args


Original author: Frederic Peters <fpeters@0d.be>
Date: 2007-10-06 20:39:19.031000+02:00
2008-04-29 12:02:30 +00:00
Frédéric Péters c1bf8393fb [project @ fpeters@0d.be-20071006172452-7ed22uoeqm22gled]
support for exceptions, with a complete hierarchy of exceptions; and emulation
of swig binding behaviour (access to code via [0] and to error string via [1])

login = lasso.Login(server)
try:
    login.initAuthnRequest('plop', lasso.HTTP_METHOD_REDIRECT)
except lasso.Error, error:
    print error
      # <lasso.ProviderNotFoundError(-201): ProviderID unknown to LassoServer.>
    print error.code
      # -201
    print error[0]
      # -201
    print error[1]
      # ProviderID unknown to LassoServer.
    sys.exit(1)


Original author: Frederic Peters <fpeters@0d.be>
Date: 2007-10-06 19:24:52.095000+02:00
2008-04-29 12:02:22 +00:00
Frédéric Péters 1aac24f0cc [project @ fpeters@0d.be-20071005193755-jzlc2gc56thaxqwe]
added support for optional arguments and fixed method calls with objects

now working:

server = lasso.Server('../../tests/data/sp1-la/metadata.xml')
server.addProvider(2, '../../tests/data/idp1-la/metadata.xml', 
        '../../tests/data/idp1-la/public-key.pem')

login = lasso.Login(server)
login.initAuthnRequest('https://idp1/metadata', 4)
login.buildAuthnRequestMsg()
print login.msg_url


Original author: Frederic Peters <fpeters@0d.be>
Date: 2007-10-05 21:37:55.914000+02:00
2008-04-29 12:01:58 +00:00