Commit Graph

48 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 f5442dc84b SAML 2.0: add support for attribute, authentication and authorization authorities metadata
* server.c,serverprivate.h: add new private method
   lasso_server_get_firs_providerID_by_role(server, role)w
 * defederation.c: use new private method
   lasso_server_get_first_providerID_by_role for find providerID
   when the argument remote_providerID is null in
   lasso_defederation_init_notification.
 * lasso/id-ff/login.c (lasso_login_init_authn_request): use new private
   method lasso_server_get_first_providerID_by_role.
 * provider.h: add thre new provider role (authn,pdp,attribute) and
    four new services (authn,assertionid,attribute,authz) and also
    a ROLE_ANY value (-1) for catchall purpose and a ROLE_LAST for
    array sizing.
 * provider.h: add a LAST member to LassoMdProtocolType enum.
  * providerprivate.h,provider.c:
   - removes separate hashtable for descriptors depending on provider role,
     use only one table named Descriptors.
   - use the LAST members of enumerations to dimention static string arrays.
  * provider.h: add a LAST member to the e
2010-03-27 16:51:43 +00:00
Benjamin Dauvergne 7aa18e07b1 Fix leaks, change signature of lasso_provider_get_sp_name_qualifier, make it return a const char* 2010-02-04 00:02:05 +00:00
Benjamin Dauvergne 2ff13e5414 SAML 2.0: overhaul for ubuquitous binding support, still need work for HTTP-Artefact 2010-01-12 15:39:48 +00:00
Benjamin Dauvergne cf45d9fc99 Core: in provider.h, add LASSO_PROVIDER_ROLE_BOTH 2010-01-12 15:39:37 +00:00
Benjamin Dauvergne 85161f15a7 Core: in provider.h, add new SAML 2.0 HTTP-Method, PAOS 2010-01-12 15:39:34 +00:00
Benjamin Dauvergne 1dece2447d Core: in provider.c, add lasso_provider_verify_single_node_signature
* lasso/id-ff/provider.c lasso/id-ff/provider.h:
   add a new function to check an enclosed single signature on a
   LassoNode, given that the LassoNode retained its original xml node
   content.
2010-01-04 09:14:25 +00:00
Benjamin Dauvergne 3c9e4965dd Core: factorize code to obtain a SPNameQualifier
* lasso/id-ff/provider.c lasso/id-ff/provider.h:
   add a method giving the SPNameQualifier for a provider (its entity id
   or its affiliation id).

 * lasso/id-ff/profile.c:
 * lasso/saml-2.0/login.c:
   update use sites.
2009-10-30 14:47:36 +00:00
Benjamin Dauvergne bdd1ad92a0 Core: add const modifier to return value of lasso_provider_get_metadata_list
- lasso/id-ff/provider.c lasso/id-ff/provider.h:
   change return type of lasso_provider_get_metadata_list from GList* to
   const GList*.
 - lasso/id-ff/logout.c lasso/saml-2.0/logout.c
   lasso/saml-2.0/provider.c:
   change consumers of the API
2009-09-29 13:20:40 +00:00
Benjamin Dauvergne 00ea5d7113 Core: Add const modifiers to LassoProvider methods
* lasso/id-ff/provider.c lasso/id-ff/provider.h
   lasso/saml-2.0/provider.c lasso/saml-2.0/provider.h:
   add const modifier where they could be added.
2009-09-29 13:20:38 +00:00
Benjamin Dauvergne af7feb4670 Add method to Provider to retrieve default NameIDFormat
* lasso/id-ff/provider.c lasso/id-ff/provider.h:
   add lasso_provider_get_default_name_id_format, which returns the firs
   listed NameIDFormat from the SAML 2.0 metadatas of the provider.
2009-09-29 13:20:31 +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 7b4cd86ae3 Core: add a terminating value to enum LassoHttpMethod
* lasso/id-ff/provider.h:
   add LASSO_HTTP_METHOD_LAST to enum LassoHttpMethod.
2009-03-27 15:04:57 +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
Benjamin Dauvergne 500480afbf Add public function lasso_server_add_provider_from_buffer, to add a provider
from an XML string of the metadatas (changed semantic of the second argument
compared to lasso_server_add_provider). To support this a new public
LassoProvider constructor was added: lasso_provider_new_from_buffer, where the
second argument is an XML string. It uses a new private function,
lasso_provider_load_metadata_from_buffer.
2008-08-26 12:48:58 +00:00
Benjamin Dauvergne 207891ff29 * Fix blanks mismatch (space in *.c and *h files or tabs in *.py files) and formatting 2008-08-05 14:53:29 +00:00
Benjamin Dauvergne e7a598832b * add bad argument handling in lasso_provider_* functions 2008-04-23 17:10:05 +00:00
Damien Laniel 4fc6657e0c updated Copyright dates in all files 2007-05-30 17:17:45 +00:00
Frédéric Péters 97c351749d fixed gtk-doc for some enums 2006-12-27 15:04:00 +00:00
Damien Laniel 13f707bf30 Allow the choice of the encryption algorithm to use 2006-12-20 09:03:41 +00:00
Damien Laniel 5f2583da6d Changed setEncryption(boolean) to setEncryptionMode(enum mode) 2006-11-22 12:45:38 +00:00
Damien Laniel d0edddf2bb Added lasso_provider_set_encryption method to activate or desactive encryption 2006-11-22 10:30:54 +00:00
Frédéric Péters e6074f1ad4 encryption_public_key will always be set from metadata; no need for filename
stuff and to touch the public struct.
2006-11-08 17:45:45 +00:00
Damien Laniel 87415b9c80 load encryption key from metadatas 2006-11-08 17:16:31 +00:00
Frédéric Péters 9d11e3041b documentation fixes 2006-02-21 09:51:49 +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 871bf490c4 API addition; lasso_provider_get_organization 2005-04-20 13:35:52 +00:00
Frédéric Péters fb47f6ba46 enum documentation 2005-02-21 14:26:47 +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
Emmanuel Raviart 487b1ff63f Spelling correction: succint -> succinct. 2004-12-31 18:21:32 +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 a6de92e312 Do not store metadata in provider dumps; only store the filename. Handle
AssertionConsumerServiceID in <lib:AuthnRequest>; this allows to have more than
one AssertionConsumerServiceURL in a single service provider.
2004-12-24 10:04:37 +00:00
Frédéric Péters 23b4a410c6 documented #LassoServer 2004-12-22 11:44:13 +00:00
Frédéric Péters dfe6311bcb Started organizing Lasso Reference Manual; documenting LassoProvider. 2004-12-22 10:48:31 +00:00
Frédéric Péters b8f2c78f2f added lasso_provider_get_base64_succint_id method to LassoProvider to
facilitate Identity Provider Introduction implementation.
2004-12-21 20:57:45 +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 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 73f785f30b synced lasso_login_build_authn_request_msg; added has_protocol_profile
function.
2004-10-29 11:16:38 +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
Valery Febvre c4bea7b9a7 *** empty log message *** 2004-06-30 13:07:03 +00:00
Nicolas Clapies 3db415092c add acces methods to metadata logout properties 2004-06-25 10:20:04 +00:00
Nicolas Clapies a95b0c694a a lot of update 2004-06-22 16:24:49 +00:00
Nicolas Clapies 58023d7295 add code to build provider from filename and method to acces value of metadata 2004-06-15 16:28:12 +00:00
Valery Febvre 1b92247277 Initial version 2004-06-04 12:49:18 +00:00