Commit Graph

9 Commits

Author SHA1 Message Date
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 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
Damien Laniel 1319b317e1 fixed docstrings ; added an exported function ; reorganised functions in file 2008-10-01 10:08:36 +00:00
Damien Laniel 2599e7abb8 fixed segfaults 2008-10-01 09:55:40 +00:00
Benjamin Dauvergne 9ed0670e48 * Remove ending blanks 2008-09-12 15:06:58 +00:00
Benjamin Dauvergne a4daec5c74 add matching of Bearer authentication, support ID-WSF 1.1 security mechanisms URNs 2008-08-01 14:09:33 +00:00
Benjamin Dauvergne 76d9fce5d5 forked lasso branch for adeline 2008-08-01 14:08:54 +00:00
Benjamin Dauvergne bbd7e083b2 * lasso/id-wsf/discovery.c:
- include utils.h
 - move lasso_wsf_profile_build_key_info_node here
 - add a comment for future review of lasso_discovery_build_credential
 - remove direct use of lasso_wsf_profile_build_soap_envelope, use
   lasso_wsf_profile_init_soap_request instead.

* lasso/id-wsf/utils.{c,h}:
 - new file with security mech id matching functions

* lasso/id-wsf/wsf_profile.c:
 - remove all credentials related static functions
 - empty all credentials related public functions
 - move function related to matching security mechanism into utils.{c,h} and
   xml/disco_description.h
 - add static function lasso_wsf_profile_comply_with_saml_authentication that
   tries to add credential to the request to a web service using the SAML
   WS-Security mechanism
 - add static function lasso_wsf_profile_comply_with_security_mechanism to
   dispatch upon the current chosen securirt mechanism.
 - extract build_soap_envelope to the static function
   build_soap_envelope_internal to remove warning of usage of a deprecated
   function.
 - remove lasso_wsf_profile_set_public_key
 - remove lasso_wsf_profile_set_security_mech_id
 - add lasso_wsf_profile_get_security_mechanism
 - add lasso_wsf_profile_set_description
 - empty function about online status of the principal
 - remove all (non-working) handling of the x509 security mechanism
 - add a new constructor function
 LassoWsfProfile* lasso_wsf_profile_new_full(LassoServer *server, LassoDiscoResourceOffering *offering)
 - and a new init function (for subclass):
 gint lasso_wsf_profile_init(LassoWsfProfile *profile, LassoServer *server, LassoDiscoResourceOffering *offering)

* lasso/id-wsf/wsf_profile.h:
 - mark as deprecated:
 lasso_wsf_profile_move_credentials
 lasso_wsf_profile_build_soap_envelope
 lasso_wsf_profile_set_provider_soap_request
 lasso_wsf_profile_principal_is_online
 lasso_wsf_profile_add_credential
 lasso_wsf_profile_set_principal_status
 lasso_wsf_profile_set_principal_online
 lasso_wsf_profile_set_principal_offline

* lasso/id-wsf/wsf_profile_private.h:
 - remove fields from LassoWsfProfilePrivate structure:
  - GList *credentials;
  - gchar *public_key;
 - add fields:
  - char *security_mech_id;
  - LassoDiscoResourceOffering *offering;
2008-08-01 14:08:41 +00:00
Benjamin Dauvergne fc1fa52ef2 move some utility functions out of wsf_profile.c 2008-08-01 14:08:22 +00:00