Commit Graph

52 Commits

Author SHA1 Message Date
Benjamin Dauvergne c07cd3898c SAML 2.0&ID-FF 1.2: simplify and complete metadata loading for multi-role support 2010-03-27 16:52:04 +00:00
Benjamin Dauvergne 9150b008cf Core: add method to check whether we are IdP or SP of another provider
* lasso/id-ff/profile.{c,h}:
   the method lasso_profile_sso_role_with, evaluate using the current
   LassoIdentity content if we are in a relation of IdP or SP toward
   another provider. This is based on the existence of a federation with
   this provider.
2010-03-27 16:51:47 +00:00
Benjamin Dauvergne d5994b2bae Add signature_verify_hint accessor methods to LassoProfile
* lasso/id-ff/profile.{c,h}:
   add a LassoProfileSignatureVerifyHint enumeration and two accessor
   methods:
    - lasso_profile_get_signature_verify_hint
    - lasso_profile_set_signature_verify_hint
 * lasso/id-ff/profileprivate.h:
   add private field signature_verify_hint.
2010-03-27 16:51:34 +00:00
Benjamin Dauvergne 32794e6c89 Core: add an helper method to build a SOAP response in a LassoProfile object
* lasso/id-ff/profile.{c,h}:
   add lasso_profile_add_soap_fault_response(char* code, char *string,
   GList *details).
 * lasso/id-wsf-2.0/profile.{c,h}:
   change signature of lasso_idwsf2_profile_init_soap_fault_response.
 * lasso/id-wsf-2.0/data_service.c:
   use new function instead of manually intializing soap faults
 * lasso/id-wsf-2.0/discovery.c:
   init a soap fault when parsed request is of an unknown type, return
   proper error.
2010-03-02 11:57:53 +00:00
Benjamin Dauvergne 95f5d99be6 Core: add missing return value owner semantic annotations to getters
* lasso/id-ff/provider.c:
   fix lasso_provider_get_base64_succinct_id, it returned a libxml
   string, copy it with g_strdup before releasing it to stay with GLib
   allocated string in return values.
2010-02-17 10:14:59 +00:00
Benjamin Dauvergne 8aa3a68f7b Core: complete documentation on LassoProfile 2010-01-18 10:03:46 +00:00
Benjamin Dauvergne 0988cc2ec8 Core: in profile.c, profile.h, profileprivate.h, add a new attribute to express signature needs 2010-01-12 15:39:45 +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 962a5d2403 new function lasso_profile_get_server()
* lasso/id-ff/profile.c:
 * lasso/id-ff/profile.h:
   in a move to try to remove direct access to object content, add a
   function to retrieve the LassoServer object of a LassoProfile.
 * bindings/overrides.xml:
   it conflicts with direct access to the public field server, so we do
   not export it in the binding for now.
2009-04-27 08:19:30 +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
Damien Laniel eefdf3b586 moved soap_envelope_request and soap_envelope_response to ProfilePrivate to avoid ABI breackage 2007-06-18 09:43:47 +00:00
Damien Laniel 56b653cc55 use nameIdentifier attribute of LassoProfile for IdWsf2 profiles 2007-06-13 15:45:38 +00:00
Damien Laniel 82d2325934 removed IdWsf2Profile and use LassoProfile instead 2007-06-13 14:14:57 +00:00
Damien Laniel 4fc6657e0c updated Copyright dates in all files 2007-05-30 17:17:45 +00:00
Damien Laniel 6f43a7ef6f added id-wsf 2.0 request types + added a missing include 2007-04-25 14:15:25 +00:00
Frédéric Péters 8706c32cff detection of SOAP name id management 2006-11-05 12:23:18 +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
Nicolas Clapies 895a04a76b Added REQUEST_TYPE_SASL_REQUEST returned by lasso_profile_get_request_type_from_soap_msg(). 2005-03-21 16:51:33 +00:00
Frédéric Péters b2c62fae14 documented LassoRequestType and killed unused LassoMessageType (it was already
unused in 0.6.0 so I allow this as not breaking api)
2005-02-21 14:18:14 +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 225cb9a6c4 made lasso_profile_set_response_status into a private function 2005-01-12 15:17:10 +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 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 f46dbaadb7 Minimal documentation for #LassoProfile and #LassoLogin 2004-12-22 12:48:05 +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 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 5c353c8fe9 more header cleaning 2004-11-16 20:35:06 +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 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 fccd418c36 Integrated scalp_is_liberty_query into Lasso. Consequently,
LASSO_PROFILE_ERROR_INVALID_QUERY is now a negative error code and a
critical message is displayed when this error occurs.
2004-10-02 21:49:38 +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 544a063784 Moved 'signature_status' private property from LassoLogin to LassoProfile 2004-09-23 13:44:38 +00:00
Valery Febvre c82fad5739 Added lasso_profile_get_remote_providerID() method 2004-09-22 10:24:01 +00:00
Nicolas Clapies 4909ede99e *** empty log message *** 2004-09-20 15:54:09 +00:00
Nicolas Clapies 38b810e034 Fixed big mistake when updating name registration type in lassoRequestType : moved type at the end to preserve API, sorry. 2004-09-20 15:42:00 +00:00
Frédéric Péters 055ef8fe64 repair API/ABI; thanks you very much. 2004-09-20 14:49:49 +00:00
Nicolas Clapies dd7a3ee640 Added name registration type in lassoRequestType enum. added test in function lasso_profile_get_request_type_from_soap_msg() 2004-09-20 14:30:43 +00:00
Emmanuel Raviart 0c32f3bcbb Added constant lassoHttpMethodAny.
Added error constants to SWIG (and one to Python).
2004-08-26 16:46:38 +00:00
Nicolas Clapies 2ac5ac720a renamed lassoFederationTermination to lassoDefederation in lassoRequestType enum 2004-08-24 14:34:10 +00:00
Nicolas Clapies d9978fdc4c added private attribute http_request_method in profile class to know the HTTP method in defederation, name registration, logout and name mapping used by the requester 2004-08-18 14:05:06 +00:00
Valery Febvre e1c8d45f13 Moved session & identity properties in private section 2004-08-06 17:30:08 +00:00
Valery Febvre 5091285892 Renamed enums (Bug #225):
lassoMessageTypes,lassoHttpMethods,lassoRequestTypes
into
	lassoMessageType,lassoHttpMethod,lassoRequestType
2004-08-04 10:15:10 +00:00
Valery Febvre ef5c65cec8 Renamed enum lassoProviderTypes into lassoProviderType (Bug #225) 2004-08-04 01:44:48 +00:00
Nicolas Clapies 64cf35bed3 add request type test for Lecp 2004-08-03 15:23:24 +00:00
Valery Febvre 5b18b469d7 Moved functions (alphabetical order) 2004-07-30 15:31:36 +00:00
Valery Febvre 699a7d92b5 Fixed a typing mistake
all durty -> dirty
2004-07-30 14:22:57 +00:00