summaryrefslogtreecommitdiffstats
path: root/lasso/id-wsf
Commit message (Collapse)AuthorAgeFilesLines
* Fix license boilerplatesSimo Sorce2013-12-0319-38/+19
| | | | | | | 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>
* Simplify useless complexity in include pathsBenjamin Dauvergne2011-12-167-27/+27
|
* [id-wsf discovery] provider can now contain multiple public keys, only ↵Benjamin Dauvergne2011-10-101-2/+7
| | | | | | | consider the first key for id-wsf token generation ID-WSF never contemplated the fact that sometimes key roll-over happend (SubjectConfirmation can only containg on ds:KeyInfo), whatever...
* [Core] replace all use of g_strcmp0 by lasso_strisequal and lasso_strisnotequalBenjamin Dauvergne2010-10-012-12/+14
| | | | | Too much human errors with strcmp kind of functions. Also change name os lasso_is_empty_string to lasso_strisempty.
* [ID-WSFv1] fix other misuses of the macro lasso_foreachBenjamin Dauvergne2010-09-272-5/+6
|
* [ID-WSFv1&ID-WSFv2] separate better strings for ID-WSF from other stringsBenjamin Dauvergne2010-09-098-0/+9
| | | | | | Code in core source file which depend upon ID-WSF symbols have been conditionalized, and each id-wsf source file now include directly its need string header.
* [Core] remove now useless .cvsignore filesBenjamin Dauvergne2010-07-211-7/+0
|
* [Core] change return type of all error returning methodsBenjamin Dauvergne2010-07-126-58/+58
| | | | | The new return type is lasso_error_t, it should allow to pinpoint easily methods returning an error code in bindings.
* Initialize all uninitialized rc variablesBenjamin Dauvergne2010-04-302-2/+2
|
* Improve safety by replacing all g_list_free use by lasso_release_listBenjamin Dauvergne2010-04-221-1/+1
|
* Improve safety by replacing all g_free use by lasso_releaseBenjamin Dauvergne2010-04-224-11/+12
|
* ID-WSF 1.0: fix bad header name in all inclusive header lasso/id-wsf/id_wsf.hBenjamin Dauvergne2010-03-081-9/+9
|
* Core: add missing return value owner semantic annotations to gettersBenjamin Dauvergne2010-02-174-20/+22
| | | | | | | * lasso/id-ff/provider.c: fix lasso_provider_get_base64_succinct_id, it returned a libxml string, copy it with g_strdup before releasing it to stay with GLib allocated string in return values.
* ID-WSF 2.0: fix lots of bad usage of g_strcmp0Benjamin Dauvergne2010-02-171-2/+2
| | | | | | | * lasso/id-wsf-2.0/idwsf2_helper.c lasso/id-wsf-2.0/soap_binding.c lasso/id-wsf/data_service.: add missing check for the return value of strcmp, maybe we need a macro like lasso_strequal.
* Documentation: complete non finished documentation commentsBenjamin Dauvergne2010-02-102-17/+22
| | | | | | * too much warnings when generating doc, now we can concentrate on undocumented symbols (in lasso/docs/reference/lasso/lasso-undocumented.txt).
* ID-WSF: remove useless new_from_message methodsBenjamin Dauvergne2010-02-011-2/+4
|
* ID-WSF: change name of Personal Profile namespace symbols, add symbols for ↵Benjamin Dauvergne2010-01-283-4/+4
| | | | ID-SIS PP 1.1
* Core: fix gtk-doc annotationsBenjamin Dauvergne2010-01-282-2/+2
|
* ID-WSF 1.0 & 2.0: complete lasso-sections.txt, add internal API to access ↵Benjamin Dauvergne2010-01-264-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | SOAP headers, complete WS-Addressing support * docs/reference/lasso/lasso-sections.txt: complete documentation of LassoSoapEnvelope and LassoSoapFault with ID-WSF additions. * lasso/id-wsf-2.0/profile.c lasso/id-wsf-2.0/soap_binding.c lasso/id-wsf-2.0/soap_binding.h: add internal function _get_node and _get_header to simplify implementation of accessors for headers. change signature of lasso_soap_envelope_get_message_id and add new function lasso_soap_envelope_get_relates_to. update call points. add a message id when building a SOAP message. * lasso/xml/idwsf_strings.h: add element name for MessageID and RelatesTo WS-Addressing elements. * lasso/id-wsf/authentication.c lasso/id-wsf/data_service.c lasso/id-wsf/discovery.c lasso/id-wsf/wsf_profile.c lasso/id-wsf-2.0/saml2_login.c lasso/xml/disco_description.c: fix path name of header lasso/id-wsf/wsf_utils.h. make all internal include path relatives.
* Documentation: distribute stylesheet, fix documentation comments, compelte ↵Benjamin Dauvergne2010-01-181-1/+8
| | | | lasso-sections.txt
* ID-WSF: mark API as Private not InternalBenjamin Dauvergne2010-01-181-1/+1
|
* ID-WSF 1.0: change name of utils.{c,h} file for documentation parsingBenjamin Dauvergne2010-01-183-2/+2
| | | | | | | * utils.h: this header has the same name as an other header which is not parsed by the documentation (lasso/utils.h) and the documentation process just match by filename, so we rename it.
* XML: move SOAP API to its own sub directoryBenjamin Dauvergne2010-01-045-9/+9
|
* ID-WSF 2.0&ID-WSF: in profile.c, wsf_profile.c, errors.c, errors.h, and in ↵Benjamin Dauvergne2010-01-041-1/+1
| | | | lasso-sections.txt change LASSO_SOAP_FAULT_REDIRECT_REQUEST to LASSO_SOAP_ERROR_REDIRECT_REQUEST_FAULT
* ID-WSF: in id_ff_extensions.c, add SECTION gtk-doc declarationBenjamin Dauvergne2010-01-041-0/+1
|
* ID-WSF: in interaction_profile_service.{c,h}, make initialization of a ↵Benjamin Dauvergne2010-01-042-2/+2
| | | | redirect request, part of LassoWsfProfile methods.
* ID-WSF: in discovery.c:lasso_discovery_init_resource_offering, add doc ↵Benjamin Dauvergne2010-01-041-3/+4
| | | | annotations, use assignment macros to set output argument
* ID-WSF: in discovery.c, update documentation annotationsBenjamin Dauvergne2010-01-041-18/+17
| | | | | | | | | * lasso/id-wsf/discovery.c: - add annotations to lasso_discovery_init_query, lasso_discovery_init_modify, lasso_discovery_process_request_msg. - initialize response in lasso_discovery_process_query_mesg and lasso_discovery_process_modify_msg, so that modifications of the response can be done between _process_ and _build_ calls.
* ID-WSF: in data_service.c:lasso_data_service_init_query check absent ↵Benjamin Dauvergne2010-01-042-210/+339
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resource offering, support security_mech_id argument * lasso/id-wsf/data_service.c lasso/id-wsf/data_service.h: - in lasso_data_service_apply_modifications, dst_modification initialization is missing. - remove lasso_data_service_get_redirect_request_url - change LASSO_DATA_SERVICE_CANNOT_ADD_ITEM to LASSO_DATA_SERVICE_ERROR_CANNOT_ADD_ITEM - in lasso_data_service_init_query, complete documentation, fix mem leak - factorize code between lasso_data_service_build_modify_response_msg and lasso_data_service_build_query_response_msg, create lasso_data_service_build_response_msg - in lasso_data_service_get_answer, add out annotation to output parameter - simplify API, simplify code path for query and modification processing - add lasso_data_service_process_request_msg, lasso_data_service_build_modify_response_msg, lasso_data_service_validate_request. - remove lasso_data_service_process_query_msg and lasso_data_service_process_modify_msg from public API. - in lasso_data_service_process_query_msg and lasso_data_service_process_modify_msg add arg checks, make them static and move preprocessing of the request in lasso_data_service_process_request_msg. - in lasso_data_service_get_answer, fix request/response mismatch. - add accessors lasso_data_service_set_resource_data and lasso_data_service_get_resource_data. - add securit_mech_id arg to data_service_init_modify, export resource_data accessor methods - remove lasso_data_service_get_redirect_request_url - fix missing intializations and leaks
* ID-WSF: in wsf_profile.c, fix mem leaksBenjamin Dauvergne2010-01-041-6/+9
|
* ID-FF1.2 and SAML2: remove direct access to profile->server->providersBenjamin Dauvergne2009-10-301-3/+3
| | | | | | * client of LassoServer should use lasso_server_get_provider. * LASSO_PROFILE_ERRROR_UNKNOWN_PROVIDER was a mistake, it is superfluous, use LASSO_SERVER_ERROR_PROVIDER_NOT_FOUND.
* Do not use g_new, use g_new0Benjamin Dauvergne2009-09-291-1/+1
| | | | | | | | | | | | | * lasso/id-ff/federation.c: * lasso/id-ff/logout.c: * lasso/id-ff/profile.c: * lasso/id-ff/provider.c: * lasso/id-ff/server.c: * lasso/id-ff/session.c: * lasso/id-wsf/authentication.c: * lasso/saml-2.0/ecp.c: * lasso/xml/xml.c: even for private datas, use g_new0, it is safer.
* ID-WSF 1.0: use the common wsse:Security objectBenjamin Dauvergne2009-09-111-7/+13
| | | | | | | | * lasso/id-wsf/wsf_profile.c: use the common LassoWsSec1SecurityHeader object instead of the specific LassoWsseSecurity, and set the needed namespace using lasso_node_set_custom_namespace. add implementation comments.
* ID-WSF 1.0: Fixed missing or deprecated functions in public headersBenjamin Dauvergne2009-08-287-77/+25
| | | | | | Some new functions were missing from the headers, others were deprecated some time ago and as the API is not considered stable for ID-WSF, I removed them definitely.
* Docs: change the doc production and lot of other fixesBenjamin Dauvergne2009-08-268-5/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lasso/Makefile.am: distribute extract_sections.py * docs/references/lasso/lasso.types.in: add missing class (mainly SAML2 and ID-WSF 1.0/2.0) from docs/references/lasso.types.in * lasso/xml/strings.h: add lots of documentation, or at least documentation template to strings constants. * id-ff/login.h: * saml-2.0/assertion_query.h: * xml/xml.h: document undocumented enumerations. * lasso/errors.h: add proper documentation about error codes. * lasso/errors.c: new version of the lasso_strerror function * lasso/build_strerror.py: update the script that generater lasso_strerror from the documentation comments. Remove usage of OFTYPE * lasso/id-ff/session.c: * lasso/id-ff/session.h: remove usage of oftype, prefer gtk-introspection annotations instead. * lasso/id-wsf/data_service.h: * lasso/id-wsf/data_service.c: do the same. Add a script to build lasso-sections.txt * lasso/extract_sections.py: this script parses header files and generated lasso-sections.txt content for GObject class descriptions. Add a template file for the lasso-section.txt file * docs/references/lasso-sections.txt.in: this file serves as a base for the generation of lasso-sections.txt Update docs/references/Makefile.am for generating lasso-sections.txt * docs/references/Makefile.am: always rebuild template, using out of source build directory is too weird without it. call new script extract_sections.py to regenerate lasso-sections.txt if header files changed. Update lasso.sgml file with all missing sections * docs/reference/lasso.sgml: add all missing sections, mainly objects from XML schemas. * docs/reference/lasso-sections.txt: update it * *.c: add section documentation to some files. * lasso/xml/strings.h: fix bad usage or docbook markup
* All: Rework include files handling, separated ID-WSF code from SAML2/ID-FF codeBenjamin Dauvergne2009-08-2613-55/+530
| | | | | | | | | | | | | * nearly all C files: change includes for relative paths. * lasso/id-wsf/id_wsf.h, lasso/id-wsf-2.0/id_wsf_2.h: add top level public include files for ID-WSF 1.0 and ID-WSF 2.0. * lasso/id-ff/server.*, lasso/id-ff/session.*, lasso/id-ff/identity.*: remove most of the code related to ID-WSF and push into lasso/id-wsf/id_ff_extensions.* and lasso/id-wsf-2.0/identity.c, lasso/id-wsf-2.0/server.c, lasso/id-wsf-2.0/session.c. * lasso/id-wsf-2.0/saml2_login.c, lasso/id-wsf-2.0/saml2_login_private.h: same change but for ID-WSF 2.0 support in SAML2 SSO profile.
* ID-WSF 1.0: remove absent header file from the Makefile.amBenjamin Dauvergne2009-08-261-1/+0
| | | | | * lasso/id-wsf/Makefile.am: remove data_service_private.h from header file list.
* ID-WSF: Lots of modificationsBenjamin Dauvergne2009-08-2610-1297/+1628
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Migrate lots of code to use new utility macros. Try to simplify most code paths or to factorize with LassoWsfProfile. * lasso/id-wsf/wsf_profile.c: Add API: - lasso_wsf_profile_build_soap_response_msg to build SOAP fault for Lasso errors, - lasso_wsf_profile_set_msg_url_from_description, to set the destination URL using the chosen LassoDiscoDescription (with respect to the security mechanism), - lasso_wsf_profile_init_soap_response to initialize a response to the current request, to use in sub classes, - lasso_wsf_profile_get_remote_provider_id, retrieve the SOAP binding corresponding information, - lasso_wsf_profile_get_remote_provider, simplification of lasso_wsf_profile_get_remote_provider_id, - lasso_wsf_profile_get_soap_fault, retrieve the last setted SOAP fault, used by sub classes, - lasso_wsf_profile_set_soap_fault, set a SOAP fault, to be returned by the next call by lasso_wsf_profile_build_soap_response_msg, to use in sub classes, - lasso_wsf_profile_set/get_status_code, set/get the stored status code, to use in the next lasso_xxx_build_response_message, to use in sub classes. Change name lasso_wsf_profile_get_description_autos to lasso_wsf_profile_get_description_auto. Do not access directly the session is_dirty field (it has been sealed). * lasso/id-wsf/wsf_profile.h: Add helper macro lasso_wsf_profile_helper_set_status to set status code of an ID-WSF response message containing a Status element using the stored status code. * lasso/id-wsf/wsf_profile_private.h: Add new fields (moved public fields). Add lasso_wsf_profile_set_msg_url_from_description, lasso_wsf_profile_build_soap_fault_response_msg. * lasso/id-wsf/data_service_private.h: Remove file. * lasso/id-wsf/data_service.h: Remove all public fields. * lasso/id-wsf/data_service.c: Remove private structure. Use the equivalents LassoWsfProfile private fields. Update documentation. Use LassoWsfProfile generic functions for initializing requests. Add API lasso_data_service_get_query_item, lasso_data_service_get_answers, lasso_data_service_get_answer, lasso_data_service_get_answers_by_select, lasso_data_service_get_answer_for_item_id, lasso_data_service_add_modification. Remove lasso_data_service_need_redirect_user use equivalent function lasso_interaction_profile_service_build_redirect_response_msg. Remove lasso_data_service_get_resource_offering, lasso_data_service_set_offering. * lasso/id-wsf/discovery.c: Add documentation. Change some signatures. Remove lasso_discovery_get_description_auto. Change name of lasso_discovery_init_insert to lasso_discovery_init_modify. Add a generic lasso_discovery_process_request_msg. Add internal function lasso_discovery_init_offering, to get automatically an offering if possible. Remove useless init_from_xml. Rework lasso_discovery_build_credential implementation. overloading. Remove lasso_discovery_destroy. * lasso/id-wsf/discovery.h: Remove lasso_discovery_destroy. * lasso/id-wsf/interaction_profile_service.c: Add lasso_interaction_profile_service_build_redirect_response_msg. * lasso/id-wsf/personal_profile_service.c: Update lasso_personal_profile_service_get_email to use lasso_data_service_get_answers_by_select. * lasso/xml/dst_modify.c: make modification parameter optional to the constructor.
* ID-WSF 1.0: fix off-by one ref counting error in ↵Benjamin Dauvergne2009-08-261-1/+1
| | | | | | | | lasso_wsf_profile_init_soap_request * lasso/id-wsf/wsf_profile.c (lasso_wsf_profile_init_soap_request): envelope is an argument, increment its ref count before storing it.
* ID-WSF 1.0: improve error recovery in ↵Benjamin Dauvergne2009-08-261-18/+39
| | | | | | | | | | | | | lasso_wsf_profile_comply_with_saml_authentication * lasso/id-wsf/wsf_profile.c (lasso_wsf_profile_comply_with_saml_authentication): reuse existing wsse-security element if present, remove useless comments, move core code after argument type checks, return error if enveloppe or header is missing, fail if any referenced assertion is missing, correctly handle reference count of wsse_security depending on the situation (new or reused).
* ID-WSF 1.0: fix memory leakBenjamin Dauvergne2009-08-261-1/+0
| | | | | | * lasso/id-wsf/discovery.c (lasso_discovery_add_insert_entry): the rule is that callee is responsible for becoming owner of a resource, so no g_object_ref before a call on an argument.
* Rework cleanup handlingBenjamin Dauvergne2009-04-222-52/+52
| | | | | | | | | | | | | | | | | | | | | | * lasso/utils.h: change 'goto exit' for 'goto cleanup'. rename all goto_exit macros to goto_cleanup_. rename goto_cleanup_if_fail to goto_cleanup_if_fail_with_rc and add a goto_cleanup_if_fail for function which do not return an integer value. add documentation for goto_cleanup macro family. * lasso/id-ff/login.c: * lasso/id-ff/provider.c: * lasso/id-ff/server.c: * lasso/id-ff/session.c: * lasso/id-wsf/discovery.c: * lasso/id-wsf/wsf_profile.c: * lasso/saml-2.0/profile.c: * lasso/utils.h: * lasso/xml/lib_logout_request.c: * lasso/xml/tools.c: * lasso/xml/xml.c: update name of goto_exit_if_fail macros. rename 'exit' labels to 'cleanup'.
* Core: rename lasso_release_xmlchar to lasso_release_xml_stringBenjamin Dauvergne2009-03-271-5/+5
| | | | | * lasso/id-wsf/wsf_profile.c, lasso/utils.h, lasso/xml/xml.c: rename lasso_release_xmlchar to lasso_release_xml_string.
* ID-WSF 2.0: make it work with --enabe-debuggingBenjamin Dauvergne2009-03-273-12/+12
| | | | | | | | | | | | | * lasso/id-wsf-2.0/data_service.c: * lasso/id-wsf-2.0/discovery.c: * lasso/id-wsf-2.0/profile.c: * lasso/id-wsf/data_service.c: * lasso/id-wsf/discovery.c: * lasso/id-wsf/wsf_profile.c: when --enable-debugging is activated much more type checking is done by internal macros, and code do not pass compile anymore. * bindings/python/tests/idwsf2_tests.py: nameIdentifier packing in SOAP ID-WSF calls headers is no longer supported, do not test it.
* Core: do not mix public and private headersBenjamin Dauvergne2009-03-277-0/+7
| | | | | * lots of files: explicitely load the internal header xml/private.h where needed.
* documentation-related fixesDamien Laniel2009-01-261-1/+2
|
* added documentation for id-wsf 2.0 functionsDamien Laniel2009-01-262-7/+16
|
* All: Fix missing field initializer problemsBenjamin Dauvergne2009-01-246-10/+16
| | | | | | * lots of files: Explicitely set all field of initialized structures, in order to remove -Wno-missing-field-initilizers from needed compiler options when using -Wall -Wextra.
* removed unused destroy functions (only defined in .c or .h files)Damien Laniel2009-01-221-3/+1
|
* fixed fault code and use a more precise fault stringDamien Laniel2008-12-121-1/+1
|