Commit Graph

36 Commits

Author SHA1 Message Date
Benjamin Dauvergne fd256b2269 Docs: change the doc production and lot of other fixes
* 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
2009-08-26 15:15:07 +00:00
Benjamin Dauvergne 55f2051534 ID-WSF: Lots of modifications
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.
2009-08-26 15:13:46 +00:00
Benjamin Dauvergne b09ef2e015 Core: do not mix public and private headers
* lots of files:
   explicitely load the internal header xml/private.h where needed.
2009-03-27 15:04:26 +00:00
Benjamin Dauvergne 33bbf7a7de All: Fix missing field initializer problems
* 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.
2009-01-24 09:33:40 +00:00
Damien Laniel a18ddb94e0 fixed various bugs with new compilation flags 2008-09-16 16:31:05 +00:00
Benjamin Dauvergne 9ed0670e48 * Remove ending blanks 2008-09-12 15:06:58 +00:00
Benjamin Dauvergne 207891ff29 * Fix blanks mismatch (space in *.c and *h files or tabs in *.py files) and formatting 2008-08-05 14:53:29 +00:00
Benjamin Dauvergne d17948e1fb import discovery.h, fix name of registered constructor function 2008-08-01 14:07:02 +00:00
Benjamin Dauvergne ff1ed5220f add registering of the constructor 2008-08-01 14:06:53 +00:00
Frédéric Péters 77a09ee940 fixed missing rename of LASSO_TYPE_PROFILE_SERVICE to LASSO_TYPE_DATA_SERVICE 2008-03-21 17:32:24 +00:00
Damien Laniel 928a079a16 fixed setting of resource offering datas into a data service 2007-09-18 17:08:11 +00:00
Damien Laniel 4fc6657e0c updated Copyright dates in all files 2007-05-30 17:17:45 +00:00
Frédéric Péters d5c4e974eb coding style improvements 2006-12-28 10:56:13 +00:00
Nicolas Clapies 9a139b11a6 Set server attribute in LassoPersonalProfileService 2005-10-06 15:01:01 +00:00
Frédéric Péters 4adc5b5847 renamed ProfileService to DataService 2005-08-25 07:19:27 +00:00
Nicolas Clapies d3a5f5228d Removed lasso_personal_profile_service_init_modify(). 2005-08-24 15:23:18 +00:00
Frédéric Péters edfce42f46 cleaned up PersonalProfileService 2005-08-12 16:32:05 +00:00
Frédéric Péters 6eba7b86f5 API after the pp:query has been sent,
server:
  service = lasso.ProfileService(server)
  service.processQueryMsg(soap_message)
  identity = get_identity_by_resource_id(service.request.resourceId)
  service.resourceData = identity.get_pp_view()
  service.buildResponseMsg()
  return service.msgBody

client:
  service.processQueryResponseMsg(soap_answer)
  service.getAnswer()
  # or service.getAnswer('/pp:PP/pp:CommonName')
2005-08-12 14:25:44 +00:00
Frédéric Péters 3d77fb20f4 idwsf/pp on the attribute provider side; sth like
service = lasso.ProfileService(server)
service.processQueryMsg(soap_message)
identity = get_from(service.request.resourceId)
service.resourceData = identity.convert_to_pp_xml()
2005-08-12 11:41:58 +00:00
Frédéric Péters 3e13d02bd5 first steps towards id-wsf/dst; something like this, in Python:
service = disco.getService()
service.initQuery('/pp:PP/pp:CommonName')
service.buildRequestMsg()
 -> service.msgUrl and .msgBody
2005-08-12 09:12:53 +00:00
Nicolas Clapies e2aadc4039 Added getEmail() method in LassoPersonalProfile class. 2005-08-05 15:30:01 +00:00
Nicolas Clapies ebdcb2068b Added class LassoPersonalProfile. It allows to load a xml doc representing PP data and to process query requests. Need to complete WSC PP part. 2005-08-04 22:23:24 +00:00
Nicolas Clapies 6920717ade Removed specific class LassoPersonalProfileService. Added generic web service class LassoProfileService. 2005-01-13 13:10:01 +00:00
Nicolas Clapies 1312d3a6d9 Added set of request in lasso_personal_profile_process_query_msg() and lasso_personal_profile_process_modify_msg(). 2004-12-22 22:08:31 +00:00
Nicolas Clapies 22d04e57d8 Reordered function declarations. Added check of server param. 2004-12-15 13:47:06 +00:00
Nicolas Clapies 6ed1fbe7be Added support of modify request from a SP to AP : updated element's class in level 1 (Modify and ModifyResponse) and implemented modify request in level 2 id wsf. 2004-12-15 13:12:56 +00:00
Frédéric Péters 7c1a1caafa fixed function declared as returning int that didn't return anything 2004-12-14 21:10:07 +00:00
Frédéric Péters d040361227 got top-of-file license spaced the same way as in other files (+ fixed editor
typo)
2004-12-12 18:15:01 +00:00
Nicolas Clapies 5e6fc3c044 Added lasso_personal_profile_service_add_data() method : it allows to add response elements corresponding to the requested attribute values. 2004-12-10 17:11:26 +00:00
Nicolas Clapies b914dd3d15 Updated lasso_personal_profile_service_init_query() method : now it takes a LassoDiscoResourceOffering* resourceOfferring, a LassoDiscoDescription* description and a char* select, init a Query object, set the soap url from ResourceOffering, and return a QueryItem* to optionaly set attributes. Now it is possible to add extra QueryItems with lasso_personal_profile_service_add_query_item(). It returns the new QueryItem'pointer to set optional attributes; 2004-12-10 14:29:04 +00:00
Frédéric Péters c5a2dec0cc overridden spelling fix caused alignment wreckage 2004-12-10 09:55:27 +00:00
Nicolas Clapies 5fe99f44a2 Removed code with ResourceIDGroup in lasso_personal_profile_service_init_query() : will be updated soon. 2004-12-09 18:18:54 +00:00
Nicolas Clapies 6a44127d45 Fixed support of ResourceIDGroup : updated class of level 1 and id-wsf with this new class. 2004-12-08 14:02:25 +00:00
Nicolas Clapies 6558b56fa9 Removed process of ResourceOffering param. Need to be reactivated when ResourceID process in level 1 will be completed. 2004-12-08 13:09:18 +00:00
Emmanuel Raviart 1716502943 The past participle of "to override" is overridden.
see http://en.wiktionary.org/wiki/Overridden
2004-12-07 21:30:11 +00:00
Nicolas Clapies 1e84f9e9e0 Initial version : class to manage Personal profile service. Currently, only support initiating, processing and building of Query and QueryResponse messages. 2004-12-07 15:18:40 +00:00