Commit Graph

51 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 59926d7545 Core: Add new error types
* lasso/errors.h lasso/errors.c:
   add error types: LASSO_ERROR_CAST_FAILED,
   LASSO_DATA_SERVICE_CANNOT_ADD_ITEM,
   LASSO_WSF_PROFILE_ERROR_INVALID_OR_MISSING_REFERENCE_TO_MESSAGE_ID,
   LASSO_DST_ERROR_QUERY_NOT_FOUND, LASSO_DST_ERROR_NO_DATA,
   LASSO_DST_ERROR_MALFORMED_QUERY.
2009-08-26 15:13:43 +00:00
Benjamin Dauvergne c01a0e78fa ID-WSF 1.0: Add new error to signal unknown entry
* lasso/errors.{c,h}: add a new error for the ID-WSF 1.0 module, to
  signal unknown entry in discovery responses.
2009-08-26 15:13:28 +00:00
Benjamin Dauvergne 4104a9e12f Core: add error codes, fix error strings
* lasso/errors.c, lasso/errors.h:
   remove useless error code LASSO_SERVER_ERROR_INVALID_XML,
   fix string for LASSO_PROFILE_ERROR_INVALID_ISSUER,
   add errors codes LASSO_PROFILE_ERROR_CANNOT_VERIFY_SIGNATURE,
   LASSO_PROFILE_ERROR_CANNOT_FIND_A_PROVIDER and
   LASSO_PROVIDER_ERROR_MISSING_PUBLIC_KEY.
2009-03-27 15:04:38 +00:00
Benjamin Dauvergne 95d27816ee Core: add a method to decrypt nameid, handling error cases
* lasso/id-dff/serverprivate.h:
 * lasso/id-ff/server.c:
   lasso_server_decrypt_nameid handle error case of NameID decryption,
   and update passed field pointers.
 * lasso/errors.h:
   add new error codes:
   LASSO_DS_ERROR_DECRYPTION_FAILED -118
    -  Decryption of an encrypted node failed
   LASSO_PROFILE_ERROR_MISSING_SERVER -438
    - No server object set in the profile
2009-03-09 14:05:31 +00:00
Benjamin Dauvergne 8d7c968fa8 Core: rename LOGIN_ERROR_REFER_TO_UNKNOWN_REQUEST
* lasso/errors.h:
 * lasso/errors.c:
   rename LASSO_LOGIN_ERROR_REFER_TO_UNKNOWN_REQUEST to
   LASSO_LOGIN_ERROR_ASSERTION_DOES_NOT_MATCH_REQUEST_ID.
2009-03-03 20:52:41 +00:00
Benjamin Dauvergne 9c33ce6000 Core: add error code LOGIN_ERROR_REFER_TO_UNKNOWN_REQUEST
* lasso/errors.h, lasso/errors.c:
  - LASSO_LOGIN_ERROR_REFER_TO_UNKNOWN_REQUEST is raised when a
    samlp:Response contains an attribute inResponseTo when when no
    previous request can be found inside the LassoLogin object or if the
    given ID is not the as the one fome the previous request.
2009-01-24 09:33:58 +00:00
Benjamin Dauvergne e77c496487 Core: add new error codes
* lasso/errors.h: add error codes for,
  - out of memory situation,
  - excess of references during validation of signature on SAML
    protocols message or assertions,
  - an invalid reference during validation of signatures on SAML
    protocols message or assertions,
  - an mismatch between requested assertion issuer and received
    assertion issuer.
2009-01-24 09:33:49 +00:00
Benjamin Dauvergne 9ed0670e48 * Remove ending blanks 2008-09-12 15:06:58 +00:00
Benjamin Dauvergne 6edfa7935f Add a new error code, with the REGISTRY prefix and use it in registry function
returning an error code.
Fix a typo when retrieving a quark string in the registry modulke.
Improve tests for functional mapping.
2008-09-04 11:41:39 +00:00
Benjamin Dauvergne c879c0a510 * lasso/errors.h: new error for LassoWsfProfile signal missing Credentials 2008-08-01 14:10:59 +00:00
Benjamin Dauvergne 5b6c85419b add an new error for a missing ResourceID inside a ResourceOffering 2008-08-01 14:10:19 +00:00
Benjamin Dauvergne 763195b518 add somme error messages, add new error LASSO_WSF_PROFILE_ERROR_MISSING_DESCRIPTION, when no description can be found for the chosen security mechanism 2008-08-01 14:09:35 +00:00
Benjamin Dauvergne e29734709e keep head version 2008-08-01 14:08:46 +00:00
Benjamin Dauvergne 19e23fe748 * Move error message inside comments in lasso/errors.h
* Add a script to autogenerate lasso/errors.c from errors.h
* Update errors.c
* Add a target to Makefile.am to create errors.c
2008-08-01 14:08:31 +00:00
Damien Laniel a0fdce3411 fixed tab/space mix 2008-05-30 11:57:58 +00:00
Benjamin Dauvergne 670c33b8d1 remove merge markers 2008-05-30 11:55:12 +00:00
Benjamin Dauvergne 497294e8d0 * Move error message inside comments in lasso/errors.h
* Add a script to autogenerate lasso/errors.c from errors.h
* Update errors.c
* Add a target to Makefile.am to create errors.c
2008-05-30 11:17:57 +00:00
Damien Laniel 73db5fc58f processModifyResponseMsg 2007-08-08 16:03:29 +00:00
Damien Laniel 83c9fbb157 parse modify items 2007-08-06 16:45:06 +00:00
Damien Laniel 7a2d6aaf8a check enveloppe existence in case lasso functions are called in wrong order 2007-07-05 13:10:23 +00:00
Damien Laniel f7c23d1910 added one soap error and text for other soap errors 2007-06-29 15:23:38 +00:00
Damien Laniel bd0913130c better error handling + some refactoring 2007-06-13 10:09:55 +00:00
Damien Laniel e9845810e9 various error checks, coding style and refactoring 2007-06-11 09:10:32 +00:00
Damien Laniel 6886b79b93 various error checks, coding style and refactoring 2007-06-08 15:16:22 +00:00
Damien Laniel a5d7920e14 added lasso_idwsf2_data_service_init_query and lasso_idwsf2_data_service_add_query_item 2007-06-01 10:44:32 +00:00
Damien Laniel 4fc6657e0c updated Copyright dates in all files 2007-05-30 17:17:45 +00:00
Frédéric Péters 46b74e8984 new LASSO_NAME_IDENTIFIER_MAPPING_ERROR_MISSING_TARGET_IDENTIFIER error code 2007-01-03 23:17:52 +00:00
Frédéric Péters 7a78af3361 replaced remaining LASSO_ERROR_UNDEFINED by appropriate error codes 2006-12-28 10:45:39 +00:00
Frédéric Péters 17df2984aa replaced LASSO_ERROR_UNDEFINED by appropriate error codes in all of xml/ and
id-ff/
2006-12-28 10:19:46 +00:00
Frédéric Péters cdd45908f5 new LASSO_PROFILE_ERROR_STATUS_NOT_SUCCESS error code 2006-12-27 16:19:39 +00:00
Frédéric Péters 99f0d3df4f new logout error code 2006-12-06 14:06:24 +00:00
Damien Laniel 4078845aa2 Added an error type when there is no key to decrypt some encrypted elements 2006-11-28 13:40:55 +00:00
Frédéric Péters 166cff9417 extra checks to pass negative testing steps 2006-11-28 10:47:31 +00:00
Frédéric Péters 4016a87eac added loading of affiliation metadata (not yet acted upon) 2006-11-19 20:07:46 +00:00
Damien Laniel 45e7e8e448 Replaced some LASSO_ERROR_UNDEFINED with real error codes 2006-11-14 10:36:40 +00:00
Damien Laniel 59c70367cb changed prototype for lasso_server_set_encryption_private_key and added error handling 2006-11-09 13:49:49 +00:00
Frédéric Péters d99eecd588 error on sso initiated by idp and no endpoint defined as default for sp 2006-11-08 13:07:57 +00:00
Frédéric Péters f03a5ddf5b error code for missing assertion 2006-11-06 09:53:31 +00:00
Damien Laniel a3f603c8bd Added some error cases 2006-11-02 10:50:43 +00:00
Frédéric Péters 803d916410 new error code for missing artifact 2006-10-29 18:09:18 +00:00
Frédéric Péters 313f6236bc checking pointers... 2006-10-26 07:16:58 +00:00
Frédéric Péters b08ae207c0 better error handling in slo 2006-09-28 16:09:54 +00:00
Frédéric Péters 1febb546b5 define and use specific error codes 2006-08-03 12:49:52 +00:00
Frédéric Péters ebb9f7dffc SAML 2.0 support (only web-sso for the moment) 2005-11-20 15:38:19 +00:00
Nicolas Clapies 367d20203b Added a first soap fault code error. 2005-11-15 11:02:26 +00:00
Frédéric Péters d876cf4cc7 returns LASSO_LOGOUT_ERROR_REQUEST_DENIED if appropriate. 2005-10-04 08:06:36 +00:00
Frédéric Péters cd708cc417 added LASSO_ERROR_UNIMPLEMENTED error code 2005-08-12 09:10:19 +00:00
Frédéric Péters 37e124af5d return LASSO_LOGIN_ERROR_UNKNOWN_PRINCIPAL after unsuccessful logon 2005-08-10 11:29:52 +00:00
Emmanuel Raviart 7a03e99b09 Updated Copyright and authors. 2005-01-22 15:57:56 +00:00