Commit Graph

87 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 a68c89f902 ID-FF 1.2: fix style fault
* lasso/id-ff/defederation.c:
 * lasso/id-ff/logout.c:
 * lasso/id-ff/profile.c:
 * lasso/id-ff/provider.c:
 * lasso/id-ff/server.c:
   add missings casts, remove useless wrappers
 * lasso/id-ff/logout.c:
   In lasso_logout_process_request_msg change sequence of "if" for a
   "switch".
2009-03-27 15:06:29 +00:00
Benjamin Dauvergne c89c77c924 ID-FF 1.2: Add handling of relaystate for logout requests
* lasso/id-ff/logout.c (lasso_logout_process_request_msg,
 lasso_logout_validate_request): transfer relaystate from request
 message to profile field.
2009-03-27 15:06:23 +00:00
Benjamin Dauvergne 854df3b651 ID-FF 1.2: Use new macros in logout, defederation and lecp
* lasso/id-ff/logout.c:
 - (lasso_logout_build_response_msg, lasso_logout_init_request,
    lasso_logout_process_request_msg, lasso_logout_process_response_msg,
    lasso_logout_validate_request) use lasso_assign_new_object,
   lasso_assign_string, lasso_release and lasso_assign_new_string when
   possible.
 - (lasso_logout_process_response_msg) move the tranfer of the relaystate
   from XML object to profile object.

* lasso/id-ff/defederation.c:
 - (lasso_defederation_build_notification_msg,
    lasso_defederation_init_notification,
    lasso_defederation_process_notification_msg,
    lasso_defederation_validate_notification): idem

* lasso/id-ff/lecp.c:
 - (lasso_lecp_build_authn_request_envelope_msg,
    lasso_lecp_build_authn_request_msg,lasso_lecp_build_authn_response_msg,
    lasso_lecp_build_authn_response_envelope_msg) idem
2009-03-27 15:06:21 +00:00
Benjamin Dauvergne d71ff1dec3 ID-FF 1.2: Defederation, changes includes for relative paths
* lasso/id-ff/defederation.c: header path should be relative to the
   implementation, I will try to do it to most files.
2009-03-27 15:05:57 +00:00
Benjamin Dauvergne 6bc8f1a630 ID-FF 1.2: Defederatopm HTTP-Redirect binding, handle relaystate
* lasso/id-ff/defederation.c: get relaystate directly from the query
   string using lasso_get_relaystate_from_query.
2009-03-27 15:05:56 +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
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 7defe54955 include serverprivate.h since lasso_server_get_first_providerID is used. 2007-11-27 22:57:27 +00:00
Frédéric Péters bc56d07345 removed direct usage of g_object_unref from lasso_*_destroy methods 2007-11-22 12:42:47 +00:00
Damien Laniel d172b2a20a allow a NULL first parameter in init_notification 2007-11-12 10:49:18 +00:00
Damien Laniel 4fc6657e0c updated Copyright dates in all files 2007-05-30 17:17:45 +00:00
Frédéric Péters c2fa848a7e add missing profileprivate.h header for lasso_profile_clean_info function
declaration.
2007-04-14 16:30:59 +00:00
Frédéric Péters e636bd0680 new lasso_profile_clean_msg_info function used to clean msg_url and msg_body
(free()ing and setting to NULL) in functions where those variables are later
set.
2007-01-05 13:40:07 +00:00
Frédéric Péters 58477d96d8 harmonized LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ and
LASSO_PARAM_ERROR_INVALID_VALUE usage
2006-12-28 17:46:32 +00:00
Frédéric Péters 73819ed96b fixed used of unitialized variable 2006-12-20 13:47:42 +00:00
Frédéric Péters aec4544976 fixed url/query construction for endpoints with query part (zxid) 2006-11-07 12:44:32 +00:00
Damien Laniel ee093042ad Replaced return -1 with return LASSO_ERROR_UNDEFINED 2006-11-02 10:51:13 +00:00
Frédéric Péters 267dd3424a check for remote provider id before looking it in GHashTable 2006-01-23 15:30:00 +00:00
Frédéric Péters 853f46fd93 starting SAML 2 logout 2005-11-21 18:51: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
Frédéric Péters d9b7b73653 checks identity exists before referencing it 2005-06-03 21:38:14 +00:00
Frédéric Péters a1008ec4c1 profile->nameIdentifier set to local name identifier 2005-05-12 16:47:07 +00:00
Frédéric Péters 1e26b90df9 only use LASSO_SIGNATURE_TYPE_WITHX509 (including a <KeyInfo/> in message) if
we have a certificate to use; use LASSO_SIGNATURE_TYPE_SIMPLE otherwise.
2005-03-07 14:16:16 +00:00
Frédéric Péters 6cc0ebee5a removed all %s escaping sequences from lasso error strings; as a side effect
this simplifies critical_error macro, porting to non-gcc compilers should be
easier.  Along the way I also fixed the long standing bug #256.
2005-02-05 16:15:53 +00:00
Frédéric Péters 7a4de405c3 produce 1.1 requests and notifications when interoperating with previous
liberty implementations
2005-01-28 13:29:14 +00:00
Frédéric Péters 22b3a159a1 include missing identityprivate.h 2005-01-28 13:18:29 +00:00
Emmanuel Raviart 7a03e99b09 Updated Copyright and authors. 2005-01-22 15:57:56 +00:00
Frédéric Péters 21f8461ddd done with documenting if-ff/* functions 2005-01-21 10:51:24 +00:00
Frédéric Péters 522c42f3f7 corrected spelling of optionally. 2005-01-20 13:25:11 +00:00
Frédéric Péters d01961c269 documented name_identifier_mapping.c; removed its unused dump functions; fixed
a few docstrings
2005-01-20 13:24:04 +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 a61cc39269 moved some lasso private functions to new providerprivate.h; insure it is
included properly in other files (as well as some sessionprivate.h that were
missing)
2004-12-31 11:51:11 +00:00
Frédéric Péters e40295bfb8 added refcounting of server to other profiles 2004-12-30 16:47:35 +00:00
Frédéric Péters 07fcdf0c4e generate xmlsec signatures in get_xmlNode; this should allow envelopes (in
LECP) to work properly.
2004-12-28 12:44:22 +00:00
Frédéric Péters 493236dc22 documenting #LassoIdentity and #LassoFederation 2004-12-22 21:38:06 +00:00
Frédéric Péters 74697b19c1 if available, use profile->msg_relayState to init request in init_request
functions.
2004-12-19 11:07:22 +00:00
Frédéric Péters 2e0efac99e Moved LassoProfile->nameIdentifier from char* to LassoSamlNameIdentifier*,
gaining back access to the nameFormat added late before 0.5.

There are no bindings for LassoSamlNameIdentifier; as a temporary and
compatible measure; profile->nameIdentifier in bindings continues to
return a char* (profile->nameIdentifier->content).

At the same time the same change has been done for
LassoNameRegistration->oldNameIdentifier.
2004-12-18 18:36:54 +00:00
Frédéric Péters 76ec7eb692 (almost) done with errors in ID-FF; remaining "return -1" have been converted
to LASSO_ERROR_UNDEFINED (there are forty-three of them).

LASSO_ERROR_UNDEFINED was redefined from -999 to -1 so it is easier to add new
sequences of errros.
2004-12-16 14:04:43 +00:00
Frédéric Péters be7a74a348 added new standard error code LASSO_PROFILE_ERROR_BUILDING_QUERY_FAILED 2004-12-15 11:07:34 +00:00
Frédéric Péters 3dc8389da1 new LASSO_PROFILE_ERROR_NAME_IDENTIFIER_NOT_FOUND error code 2004-12-15 10:14:27 +00:00
Frédéric Péters 501da6b2b6 coherent error handling for "identity not found" and "federation not found"
cases.
2004-12-15 10:07:09 +00:00
Frédéric Péters 4fe9f93dfa new LASSO_PROFILE_ERROR_UNKNOWN_PROFILE_URL profile error and replaced a bunch
of 'return -1;' with that one.
2004-12-14 21:41:57 +00:00
Frédéric Péters 2bda2b596e more error code harmony, now with a new critical_error macro 2004-12-14 15:46:25 +00:00
Frédéric Péters 1f527f033b harmonized remote_provider tests (check and error code set to
LASSO_SERVER_ERROR_PROVIDER_NOT_FOUND)
2004-12-13 17:46:29 +00:00
Frédéric Péters b04103301a dealing with errors; now like this:
return error_code(G_LOG_LEVEL_CRITICAL, LASSO_SERVER_ERROR_ADD_PROVIDER_FAILED);
2004-12-13 15:23:24 +00:00
Frédéric Péters 6ebc89fdd3 reenabled signature checking on query strings (xml messages still to do) 2004-12-10 00:30:01 +00:00
Frédéric Péters a6471f77a0 removed unnecessary private_data in LassoFederation; consequence being
instance_init, class_init, dispose and finalise have also been removed.
2004-12-09 23:14:15 +00:00