| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
LassoKey currenly store a LassoSignatureContext inside a
reference-counted and bindable object. It will be used to export API
around key management to bindings.
|
|
|
|
|
|
|
| |
The aim of this function is now to load any metadata file, and to
replace completely the use of lasso_server_add_provider.
The metadata content argument is replaced by a metadata file path to
more closely match other APIs.
|
|
|
|
|
| |
It allows to know which entity has been loaded from the metadata file.
It must be freed by the caller.
|
|
|
|
|
| |
They are modeled around the g_log... functions of GLib, they just don't
have a domain parameter.
|
|
|
|
|
|
|
|
| |
case formatting function for WsAddressing namespace
* bindings/utils.py:
type have LassoWsAddr prefix but function have the lasso_wsa_ prefix,
so we have to adjust generated prefix.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bindings/bindings.py:
add possibility to skip generating bindings for structures to
overrides.xml.
parse element-type annotation /* of XXX */ for hashtable objects.
output to stderr warning about skipped objects.
parse idwsf_strings.h
* bindings/overrides.xml:
skip more ID-WSF 1.0 functions in java and perl.
skip structure LassoAuthentication.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* XS files is autogenerated using bindings/binding.py model of the
Lasso API. All constants are in the Lasso::Constants package, the
LASSO_ prefix is removed.
All classes are now Lasso::ClassName, field accessor also serves as
setters, i.e you can do this:
$name_id = Lasso::Saml2NameID::new();
$name_id->content('coin');
print $name_id->content;
Is still missing:
- a lot of test files,
- support for hashtables,
- and throwing exceptions when return code is non-zero.
|
|
|
|
|
|
| |
* bindings/overrides.xml:
It is no more needed to force return type of constructors to their
real types, the bindings check the type dynamically anyway.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
annotations
* bindings/bindings.py
* bindings/utils.py:
add convenience function to treat arguments tuple:
(type,name,{annotations}).
introduce new argument options, fix that arguments are 3-tuple of the
form (type,name,annotations), where annotations is a dictionary.
Key of this dictionnary can be:
- optional, wheter the argument is necessary, it means it has a
default value.
- out, means that the pointer is a pointer of pointer, for bindings
that can return exceptions, it will be returned instead of the
integer error code, the only way to access error codes will be
exceptions.
- element-type, contained type of a list or an array,
- key-type, value-type, type of respectively the key and value of a
GHashTable.
- transfer, wheter a the callee(for arguments)/caller(for return
values) owns the values passed, it can be none,container(if the
callee/caller only owns the container not the contained value) or
full.
doc.parameters is now a 3-tuple of (attribute-name,
attribute-description, attribute-annotations) where
attribute-annotations is a string of the form '(option1)(option2
option-arguments) etc.'.
- add predicates for xml, list and time_t values. improve predicates
for cstring and const modifier.
* bindings/overrides.xml:
'out' arguments are not well supported for java, so skip functions
using them.
* bindings/java/lang.py bindings/php5/php_code.py
bindings/php5/wrapper_source.py bindings/python/lang.py:
- update language specifig binding generators for handling new
annotations.
- improve python method declaration, handle optional arguments with
default values, factorize this chode in two methods,
get_python_arg_decl and defval_to_python_value.
* bindings/python/tests/Makefile.am
bindings/python/tests/idwsf1_tests.py
bindings/python/tests/idwsf2_tests.py:
make test work with out of source build dir.
|
|
|
|
|
|
| |
* bindings/overrides.xml:
bindings do not support out arguments, so skip generating bindings
for lasso_data_service_get_query_item for the moment.
|
|
|
|
| |
* bindings/overrides.xml: skip unsupported function.
|
|
|
|
|
|
| |
* bindings/overrides.xml:
some functions have output parameters (pointer on pointers) that are
currently not supported by our binding generator, so we skip them.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
merge
Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-04-23 12:04:00.477000+02:00
|
|
|
|
|
|
|
| |
support for methods returning GList* of LassoNode*
Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-04-06 15:59:13.889000+02:00
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
optional parameters for LassoDiscovery and LassoDataService
Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-04-06 00:01:12.703000+02:00
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
merging benjamin branch
Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-03-26 10:47:54.384000+01:00
|
|
|
|
|
|
|
| |
possibility to qualify GList* parameters
Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-03-26 09:45:02.789000+01:00
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
merging benjamin branch
Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-03-09 16:28:28.854000+01:00
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
benjamin branch
Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-02-25 13:13:34.475000+01:00
|
|
|
|
|
|
|
| |
merging benjamin branch
Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-02-22 10:36:56.421000+01:00
|
|
|
|
|
|
|
|
| |
merged Benjamin branch
Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-02-17 12:55:57.088000+01:00
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
merging Damien branch
Original author: Frederic Peters <fpeters@0d.be>
Date: 2007-11-13 02:58:38.825000+01:00
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
added support for non-None optional args
Original author: Frederic Peters <fpeters@0d.be>
Date: 2007-10-06 20:39:19.031000+02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
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
|