Commit Graph

62 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 7231771856 All: Rework include files handling, separated ID-WSF code from SAML2/ID-FF code
* 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.
2009-08-26 15:14:32 +00:00
Benjamin Dauvergne 9ed0670e48 * Remove ending blanks 2008-09-12 15:06:58 +00:00
Frédéric Péters e5ba6151ba moved gtk-doc inline as is better on so many points; also added schema
fragments to published doc
2008-05-15 21:17:44 +00:00
Frédéric Péters 0a91e76505 added support for sending SAMLv2 AuthnResponse over HTTP-Redirect (which
shouldn't be used because the assertion within makes for a very big message)
2007-11-27 23:17:21 +00:00
Damien Laniel 4fc6657e0c updated Copyright dates in all files 2007-05-30 17:17:45 +00:00
Nicolas Clapies 7a4be94c3d Added paos response message process support in LassoLogin object. 2006-12-05 17:16:54 +00:00
Nicolas Clapies 2fe3f065d7 Fixed lecp profile : added case when lecp profile is used when building assertion. 2005-05-10 16:47:15 +00:00
Frédéric Péters 5f205c0f2e added missing lasso_config.h include (necessary for LASSO_WSF_ENABLED
definition)
2005-03-18 21:49:42 +00:00
Frédéric Péters 5ef972b27e don't compile id-wsf files when wsf is disabled; this cuts down build
time by a nice margin.
2005-03-18 20:58:34 +00:00
Frédéric Péters 299d5bd2cf Document new functions; pretty please. Fixed memory leak introduced in
lasso_profile_get_request_type_from_soap_msg; moved wsf chunk from
build_assertion to its own function.
2005-01-28 10:25:19 +00:00
Emmanuel Raviart 472aded71a Merged wsf-api-change-not-for-0-6 branch with trunk. 2005-01-27 23:41:05 +00:00
Emmanuel Raviart 7a03e99b09 Updated Copyright and authors. 2005-01-22 15:57:56 +00:00
Frédéric Péters ac3e5574fc moved remaining lasso[A-Z].* enums to Lasso[A-Z].* 2004-12-31 18:33:23 +00:00
Frédéric Péters f46dbaadb7 Minimal documentation for #LassoProfile and #LassoLogin 2004-12-22 12:48:05 +00:00
Frédéric Péters ad056adf36 API change in Single Sign On profile (IdP side) to allow the developer to mess
with <lib:Assertion/>

Outlined in http://lists.labs.libre-entreprise.org/pipermail/lasso-devel/2004-December/001119.html
2004-12-14 19:20:20 +00:00
Frédéric Péters 45f00e1aa4 properly check signature on soap samlp:Request (login/artifact) 2004-12-14 13:50:46 +00:00
Frédéric Péters fa3d87885e [API Change] For consistency with the other profiles, remote_providerID has
been moved from build_authn_request_msg to init_authn_request in both Single
Sign-On and LECP profiles.  [details on lasso-devel@]
2004-12-14 10:20:07 +00:00
Frédéric Péters 7e6fc8e52e removed struct LassoLoginPrivate declaration 2004-12-09 23:08:30 +00:00
Frédéric Péters c556e1fdcc limit line length to 100 characters. 2004-11-25 22:25:51 +00:00
Frédéric Péters ae5ffe0468 renamed private struct member to private_data (gtk+ does it like that) 2004-11-22 16:10:41 +00:00
Frédéric Péters e9279c3acb cleaning #includes 2004-11-16 15:40:43 +00:00
Frédéric Péters a31a08d228 renamed lasso/environs/ to lasso/id-ff/ 2004-11-15 10:40:37 +00:00
Frédéric Péters 34dd2e5653 LECP converted to new tree 2004-11-01 18:23:20 +00:00
Frédéric Péters f13772d62d Done with the move to structures and the removal of protocols/ (lasso branched
on October 2nd; occasional merges since then).

- Compatible with current souk test suites.
- Missing memory management for everything in xml/
- Missing xmlsec support for SOAP messages.
2004-10-27 09:49:13 +00:00
Emmanuel Raviart ca8633b291 Removed function lasso_login_process_without_authn_request_msg.
It has been replaced with:
  lasso_login_init_self_addressed_authn_request(remote_providerID);
  /* ...Set protocolProfile, isPassive, consent, relayState here... */
  lasso_login_process_authn_request_message(NULL,
                                            lassoHttpMethodSelfAddressed);
This change was needed because there was no way to set isPassive, consent,
etc, before.

Standardized some error codes and messages.
2004-10-02 19:59:56 +00:00
Valery Febvre 06e5dd5cf7 Added a param 'is_consent_obtained' in method:
lasso_login_build_artifact_msg(),
	lasso_login_build_authn_response_msg(),
	lasso_login_process_federation(),
	lasso_lecp_build_authn_response_envelope_msg()
AuthnRequest message accepts now all possible values for the NameIDPolicy:
none, onetime, federated, any

Added lasso_login_must_ask_for_consent() method
This method must be called after lasso_login_process_authn_request_msg()

Added lasso_login_process_without_authn_request_msg() method
This method is useful to initiate SSO from IDP.

Lasso.i was updated according to the changes.
2004-09-30 17:12:23 +00:00
Valery Febvre 544a063784 Moved 'signature_status' private property from LassoLogin to LassoProfile 2004-09-23 13:44:38 +00:00
Valery Febvre 7f3f7b59ba Ooops, signature_status type must be gint, not gboolean 2004-09-22 21:11:40 +00:00
Valery Febvre e40e269b1c Removed response_dump and assertion properties in LassoLogin object
Added an attribute (remote_providerID) in lasso_login_build_response_msg()
Renamed lasso_login_add_response_assertion() into lasso_login_build_assertion()
Renamed lasso_login_init_from_authn_request_msg() into lasso_login_process_authn_request_msg()
Removed lasso_login_get_assertion(), lasso_login_set_assertion and
lasso_login_set_assertion_from_dump() methods

BEWARE : these changes break the API
2004-09-22 13:21:29 +00:00
Valery Febvre 6257249021 the remote_providerID parameter of lasso_login_build_authn_request_msg()
method is now optional.
If it's NULL, the providerID of the first provider of login->server is used.
2004-09-20 12:32:21 +00:00
Frédéric Péters 84480e4352 Moved assertion to private part of LassoLogin* (use lasso_login_get_assertion
to get it).  Without breaking ABI.  Classy.
2004-09-10 13:05:36 +00:00
Nicolas Clapies 19d696b1ac Renamed methods lasso_logint_set_assertion*() to lasso_login_set_assertion*() 2004-09-06 14:14:26 +00:00
Nicolas Clapies 1e05cd748c Updated process of artifact : now the IDP generates an artifact either or not the user authentication succeeded. When the SP resends the artifact to the IDP in a samlp:Request, it builds a samlp:Response message with Success status code value. If an assertion is found from artifact, then it adds it to the response. Finally, the IDP responds to the SP with the SOAP message 2004-09-03 16:12:51 +00:00
Valery Febvre 5dc6f94ffd Moved param 'http_method' of lasso_login_build_authn_request_msg() method
in lasso_login_init_authn_request()
BEWARE : this change breaks the API
2004-08-21 17:12:21 +00:00
Valery Febvre 64bdc7f985 Fixed a bug in lasso_login_accept_sso()
Updated gtk-doc
2004-08-21 01:20:13 +00:00
Valery Febvre 68b494d9b5 Added a new param 'http_method' in lasso_login_build_authn_request_msg()
BEWARE : this change breaks the API
2004-08-20 17:26:49 +00:00
Emmanuel Raviart 74509f54eb Created a high-level API above SWIG Python API.
Removed a trailing "s" from an enum.
2004-08-19 22:36:50 +00:00
Valery Febvre 851e653728 Splited lasso_node_verify_signature() (LassoNode class) in 2 methods:
lasso_node_verify_signature(),
	lasso_node_verify_x509_signature()

Added 2 private methods in LassoNode:
	add_signature_tmpl(),
	sign_signature_tmpl(),

Removed 'err' param in all methods for signing
2004-08-19 12:51:25 +00:00
Valery Febvre 7c34b0d38b Removed the param 'remote_providerID' of lasso_login_init_authn_request() method
Added a param 'remote_providerID' in lasso_login_build_authn_request_msg() method
2004-08-09 14:31:32 +00:00
Valery Febvre 5b1577c439 Removed the 'identity' arg in lasso_login_new_from_dump() method 2004-08-04 10:10:10 +00:00
Valery Febvre 6b36c2b6d9 LassoProfileContext class was renamed into LassoProfile 2004-07-29 23:33:53 +00:00
Valery Febvre 1017b75458 Update
LassoUser class was splited into 2 classes: LassoSession & LassoIdentity
LassoIdentity was renamed into LassoFederation
2004-07-29 22:25:17 +00:00
Valery Febvre b652a4a94a Removed arg user in lasso_login_new 2004-07-26 17:36:28 +00:00
Valery Febvre b08787ecd1 Finished to implement lasso_login_destroy() and lasso_logout_destroy() methods 2004-07-26 12:09:07 +00:00
Valery Febvre 6023d78531 Moved nameIdentifer attribute of Login object in ProfileContext 2004-07-25 15:03:00 +00:00
Emmanuel Raviart 255f09ed98 Added Nicolas to authors. 2004-07-22 06:59:03 +00:00
Valery Febvre af53e0a681 Added some debug messages
Removed msg_relayState in dump (must be on LassoProfileContext)
Finished lasso_login_process_request_msg()
lasso_login_new_from_dump() is now almost complete.
2004-07-19 00:13:41 +00:00
Valery Febvre bdccdcd199 Fixed a typing error: LASSP_... -> LASSO_... 2004-07-18 15:02:41 +00:00
Valery Febvre e305d16e5a Removed attribute remote_ProviderID of lasso_login_init_request() method
Added new method lasso_login_create_user()
2004-07-15 17:39:01 +00:00