Commit Graph

4904 Commits

Author SHA1 Message Date
Benjamin Dauvergne 6ba0e84575 [Website] fix non escaped ampersand 2010-07-22 06:02:43 +00:00
Benjamin Dauvergne 5f6c27f7b2 [Release] update libtool version 2010-07-21 20:46:36 +00:00
Benjamin Dauvergne 23421726b8 [Website] update download links 2010-07-21 20:30:55 +00:00
Benjamin Dauvergne e0925a1d78 [Release] Update version number from 2.3 to 2.3.0 2010-07-21 20:30:54 +00:00
Benjamin Dauvergne 3ff6acc268 [Release] update release date in NEWS file 2010-07-21 19:06:30 +00:00
Benjamin Dauvergne 68baeabd53 [Release] update ChangeLog 2010-07-21 18:45:20 +00:00
Benjamin Dauvergne 5ea1d1f1e5 [Release] Lasso 2.3
- update the NEWS file
 - add abi-2.3 file
 - update DOAP files
 - update lasso website template
 - add temporary message to download pages, as there are no download
   links currently.
2010-07-21 17:55:18 +00:00
Benjamin Dauvergne 42d1c18a69 [Core] add logos to EXTRA_DIST 2010-07-21 14:54:59 +00:00
Benjamin Dauvergne ee329487fe [Core] add HACKING to EXTRA_DIST 2010-07-21 14:54:58 +00:00
Benjamin Dauvergne a87ed1af5c [Documentation] add missing declaration to lasso-sections.txt 2010-07-21 14:14:49 +00:00
Benjamin Dauvergne b6b1b63457 [Tests] change the way tests data is distributed
Instead of using a Makefile.am in each data directory, each data
directoy has been added to the EXTRA_DIST for the parent directory
Makefile.am.
2010-07-21 14:14:48 +00:00
Benjamin Dauvergne 05e49cc37e [Core] remove now useless .cvsignore files 2010-07-21 14:12:06 +00:00
Benjamin Dauvergne 341cc7247b [Binding perl] move DISCLEANFILES and CLEANFILES outside of the condition clauses 2010-07-21 14:01:29 +00:00
Benjamin Dauvergne 6be27fb3ed [Tests] move sourceid-2.0beta-data to data directory 2010-07-21 13:57:05 +00:00
Benjamin Dauvergne dbda2d11c0 [Core] move format-suppressions.py to tools directory 2010-07-21 13:57:03 +00:00
Benjamin Dauvergne 953b8ce6a9 [Core] add README.JAVA and README.WIN32 files to EXTRA_DIST 2010-07-21 13:57:02 +00:00
Benjamin Dauvergne 8f0834f817 [Core] complete README.JAVA about later release of gcj 2010-07-21 13:57:00 +00:00
Benjamin Dauvergne 94a6b3cf86 [Core] add lasso.doap to EXTRA_DIST 2010-07-21 13:56:58 +00:00
Benjamin Dauvergne a941d4cd0a [Core] add errors.c to EXTRA_DIST 2010-07-21 13:56:53 +00:00
Benjamin Dauvergne 191e6a970a [Core] remove unused build-strerror.pl 2010-07-21 13:56:51 +00:00
Benjamin Dauvergne ec435d244a [Doc] move style.css to the reference directory, and add it to EXTRA_DIST 2010-07-21 13:56:50 +00:00
Benjamin Dauvergne 6b86aa67ef [Bindings] improve cleaning and distribution buiding 2010-07-21 13:56:49 +00:00
Benjamin Dauvergne 2d9a2ec35f [Tests java] remove Test.java
Local test file wrongly commited.
2010-07-21 13:56:45 +00:00
Benjamin Dauvergne 567a3d2bf2 [Makefile] add abi to EXTRA_DIST 2010-07-21 13:56:44 +00:00
Benjamin Dauvergne 6ae30da50b [Binding perl] add DISTCLEANFILES for Makefile.perl.old file 2010-07-21 13:56:42 +00:00
Benjamin Dauvergne 34c2f1759b [Tests] remove debugging printf 2010-07-21 13:56:41 +00:00
Benjamin Dauvergne 50720779e2 [Tests] change the way tests data is distributed
Instead of using a Makefile.am in each data directory, each data
directoy has been added to the EXTRA_DIST for the parent directory
Makefile.am.
2010-07-21 13:56:39 +00:00
Benjamin Dauvergne d19f5700c3 [Tests] adapt java unit tests to new semantic for list fields
GList fields now return an empty list, not null.
2010-07-20 15:46:03 +00:00
Benjamin Dauvergne aebd6ed3d7 [SAMLv2] simplify logic for handling AuthnResponse with binding HTTP-Post
The logic is now simpler:
 - first lasso_saml20_profile_process_any_response check the signature
   on the message
 - then lasso_saml20_login_process_response_status_and_assertion
   traverse all the assertions:
   - if the message is signed all assertion from the same issuer are
     automatically accepted,
   - if the message is not signed, or the signature validation failed,
     or the assertion has a different issuer than the message, we check
     the signature directly on the assertion. If any of the assertions
     fails the signature check, the result will be
     LASSO_PROFILE_ERROR_CANNOT_VERIFY_SIGNATURE.

The public field profile->signature_status will contain only the message
level signature status, each assertion signature status is not
accessible. That will change when signature and key handling is
reworked.
2010-07-20 14:15:55 +00:00
Benjamin Dauvergne 52d9fba0fa [Binding perl] fix broken distclean-local target
The TOCOPY files need to be cleaned only for out of source directory
builds.
2010-07-20 14:15:53 +00:00
Benjamin Dauvergne b8c756db7d [SAMLv2] comment on SessionIndex support hack 2010-07-19 15:56:33 +00:00
Benjamin Dauvergne 1898d645d5 [SAMLv2] remove empty files, wrongly committed 2010-07-19 15:45:52 +00:00
Benjamin Dauvergne e79fcf3beb [SAMLv2/SSO] when processing AuthnResponse with binding HTTP-Post only the assertion need to be signed
If the message is signed, the assertion is also covered, but if only the
assertion is signed, there is no error to report. If the caller ask for
forcing the validation of message signature, then we report an error.

This commit also add checking for the binding used, if it is not
HTTP-Post lasso_login_process_authn_response_msg will now report an
error.
2010-07-19 15:27:10 +00:00
Benjamin Dauvergne 19372c88c1 [Binding java] return empty list for NULL GList value, not null 2010-07-16 19:34:33 +00:00
Benjamin Dauvergne 6b48a72943 [ID-FFv1.2] add missing namespace declarations 2010-07-16 19:34:32 +00:00
Benjamin Dauvergne e869899b79 [SAMLv2] add support for encrypted private keys
* support private key with new internal API in signature setting
   methods

Plug lasso_node_set_signature into
lasso_profile_saml20_setup_message_signature and
lasso_server_saml2_assertion_setup_signature.

 * also use lasso_node_get_signature in has_signature

 * add forgottent LASSO_PROFILE_SIGNATURE_VERIFY_HINT_FORCE in switch
   cases

For AuthnResponse checking the semantic is now that if HINT_FORCE is
used we verify message signature *and* assertion signature. If
HINT_MAYBE is used we check the assertion signature if its issuer
differs from the message issuer.
2010-07-16 19:34:30 +00:00
Benjamin Dauvergne 8b385af8e6 [ID-FFv1.2] move all user of lasso_node_export_to_query to lasso_node_export_to_query_with_password 2010-07-16 19:34:28 +00:00
Benjamin Dauvergne ad93e9f831 [Core] Change lasso_apply_signature to use quark stored annotated signature parameters
The node containing signature do not handle the private keys passwords.
As the fields for signature parameters are part of the public ABI we
cannot add the password field to the public structure for those nodes.
Instead we use the new quark annotation accessed through
lasso_node_get/set_signature, and if the sign_type parameter is non-NULL
we use it instead of the parameters stored in the public structure.
This is a gross hack :( but at least it is documented.
2010-07-16 19:34:26 +00:00
Benjamin Dauvergne 21ca128532 [Core] add password parameter to lasso_sign_node 2010-07-16 19:34:24 +00:00
Benjamin Dauvergne f8ce6b25e5 [Code] add a lasso_node_export_to_query_with_password method 2010-07-16 19:34:23 +00:00
Benjamin Dauvergne c939427f21 [Core] add a password parameter to lasso_query_sign
We force use of the password through a custom OpenSSL password callback.
2010-07-16 19:34:21 +00:00
Benjamin Dauvergne 2fc20aa682 [Core] dump custom signature parameters in lasso dumps
The signature parameters are serialized as global attributes from the
http://lasso.entrouvert.org/lasso/namespaces/0.0 named:
SignatureType
SignatureMethod
PrivateKey
PrivateKeyPassword
Certificate
2010-07-16 19:34:19 +00:00
Benjamin Dauvergne 950565e5a2 [Tests/python] add test case for WebSSO with providers using encrypted keys 2010-07-16 19:34:18 +00:00
Benjamin Dauvergne 8198294c55 [Core] add lasso_node_set_signature and lasso_node_get_signature
Those two methods allows to associate signature parameters to any node.
They keep it inside the CustomElement quark. Using a private structure
may be more performant.
2010-07-16 19:34:14 +00:00
Benjamin Dauvergne 9d9cf60aca [Core] extract signature adding into base class method lasso_node_get_xmlNode
In order to permit subclass to modify the base xmlNode created by
lasso_node_impl_get_xmlNode we must defer the concrete to the virtual
method wrapper, lasso_node_get_xmlNode.

To do that it whas needed to make id_attribute another virtual field of
LassoNode subclasses (it can be accessed through an offset registered in
the class object).

This commit solves signature validation error since the patch for
managing more than one SessionIndex element in samlp2:LogoutRequest.

It also factorize the creation of signatures in one place.
2010-07-12 14:09:17 +00:00
Benjamin Dauvergne 98445777b9 [SAMLv2] if service provider supports logout, add a SessionIndex from the assertion ID
The standard mandate to provide a SessionIndex to service provider
advertaising their support of the logout profile. We follow the
convention of using the assertion ID as a SessionIndex.
2010-07-12 14:09:14 +00:00
Benjamin Dauvergne 358b2b1764 [Tests] add a sso then slo soap test 2010-07-12 14:09:12 +00:00
Benjamin Dauvergne 43c717764d [Core] lasso_check_version does not return a proper error code
lasso_check_version returns 0, 1 or -1 and one is not a proper error
code, so the original int return type is kept.
2010-07-12 14:09:11 +00:00
Benjamin Dauvergne f3c56a1039 [Bindings] make is_rc only check for lasso_error_t type 2010-07-12 14:09:10 +00:00
Benjamin Dauvergne 553814f90c [Bindings php5] simplify is_object in php_code.py 2010-07-12 14:09:09 +00:00