Commit Graph

5055 Commits

Author SHA1 Message Date
Benjamin Dauvergne a02645ba37 [XML] fix unused variable warnings 2010-09-17 17:02:40 +02:00
Benjamin Dauvergne 17cf81152a [XML] fix mem leak whene releasing CustomElement structures 2010-09-17 17:02:39 +02:00
Benjamin Dauvergne 92b9eaa2fd [Tests] fix mem leaks 2010-09-17 17:02:39 +02:00
Benjamin Dauvergne 8b0de80e4c [SAMLv2] fix mem leaks 2010-09-17 17:02:35 +02:00
Benjamin Dauvergne 280ee28202 [SAMLv2 NID management] report signature error in response, do not check response signature if forbidden
- build_response_msg will report signature error in response status
   code when called without an initialized response (without a call to
   validate_request)
 - process_response_msg now use
   lasso_saml20_profile_check_signature_status to check the signature
   status only if permitted.
2010-09-10 15:37:41 +02:00
Benjamin Dauvergne d7c56d7c20 [SAMLv2] move check for signature status to lasso_saml20_build_response_msg
And also handle the signature verification hint. If process_msg fails,
you must just call build_response_msg directly.

Only check the signature on the response if asked, most applications
should not care.
2010-09-10 15:36:56 +02:00
Benjamin Dauvergne 511dd3da9e [configure.ac] increment release version and libtool version info 2010-09-09 16:29:46 +02:00
Benjamin Dauvergne 51d5d4d3e3 [SAMLv2] apply the LassoProfileVerifySignatureHint when processing requests
The check was missing for processing of logout requests, name id
management request and assertion query responses.

A new internal function lasso_saml20_profile_check_signature_status is
added.
2010-09-09 16:20:17 +02:00
Benjamin Dauvergne b9d5356259 [ID-WSFv1&ID-WSFv2] separate better strings for ID-WSF from other strings
Code in core source file which depend upon ID-WSF symbols have been
conditionalized, and each id-wsf source file now include directly its
need string header.
2010-09-09 01:09:28 +02:00
Benjamin Dauvergne 8082428d80 Merge branches 'master' and 'release' of bdauvergne@xen3.lycope.priv:/var/git/lasso into release 2010-09-08 12:25:13 +02:00
Frédéric Péters c838dea464 News entry for 2.3.1 & 2.3.2 (combined) 2010-09-08 11:35:56 +02:00
Benjamin Dauvergne 817ab34e95 Merge branch 'hotfixes-2.3.2' into develop 2010-09-07 19:27:46 +02:00
Benjamin Dauvergne 8e8afcbd35 Merge branch 'hotfixes-2.3.2' 2010-09-07 19:27:42 +02:00
Benjamin Dauvergne 5ef593cfda Increment revision in version 2010-09-07 19:10:48 +02:00
Benjamin Dauvergne ba2705bbd7 Update files for release 2.3.2 2010-09-07 19:03:21 +02:00
Benjamin Dauvergne fb23db3ca6 Fix lasso soname change
If new interfaces are added, first and last number must be incremented.
As new enumeration value have been added, this is the case.
2010-09-07 19:02:46 +02:00
Benjamin Dauvergne 61dd8b7eb9 Merge commit 'origin/master' 2010-09-07 17:09:39 +02:00
Benjamin Dauvergne e3753ad237 Merge branch 'hotfixes-2.3.1' into develop 2010-09-07 17:02:58 +02:00
Benjamin Dauvergne 3e8c2b24b7 Merge branch 'hotfixes-2.3.1' 2010-09-07 17:02:12 +02:00
Benjamin Dauvergne 9af598f85c Update files for release 2.3.1 2010-09-07 16:39:01 +02:00
Benjamin Dauvergne b1f6b7e0ed [SAMLv2] when no artifact message is present, still return a success status
It is mandated by the specification.
2010-09-07 10:34:34 +02:00
Benjamin Dauvergne 08d61d5c95 [Tests integration] fix configuration variable name 2010-09-06 16:32:39 +02:00
Benjamin Dauvergne 3f336a8e83 Merge branch 'develop' into hotfixes-2.3.1 2010-09-03 19:07:08 +02:00
Benjamin Dauvergne 9ab6b944f1 [Core] fix memory leak in lasso_endpoint_free 2010-09-03 19:05:27 +02:00
Benjamin Dauvergne aaca9ce992 [ID-FFv1.2&SAMLv2] add more warning for failure to load metadata file
Report detailf of the failure through warning log.
2010-09-03 19:02:42 +02:00
Benjamin Dauvergne f245907b8c [SAMLv2] when failing to recreate the content for the ArtefactResponse set a lasso specific status code 2010-09-03 19:02:42 +02:00
Benjamin Dauvergne 4178cbef13 [SAMLv2] change the way content is stored and loaded for the HTTP-Artifact binding
Previously content was stored as the result of lasso_node_dump method
then reloaded, and then serialized again as part of the ArtifactResponse
message. lasso_node_dump was ignoring all hint to sign node, but keeping
the needed parameters around. That's not what must be done, the
signature should happen at the generation of the artifact and the result
must manipulated as is (i.e. XML content) and never moved back to the
land of LassoNode objects.

Now the content is:
- first removed of any signature at the message level, because the
  ArtifactResponse will take care of this, (any signature under this
  level (like at the assertion) is kept),
- serialized using lasso_node_export_to_xml,
- reloaded using lasso_xml_parse_memory,
- and put into the ArtifactResponse using a
  lasso_misc_text_node_new_with_xml_node.
2010-09-03 19:02:42 +02:00
Benjamin Dauvergne edd618319c [SAMLv2] make lasso_saml20_profile_generate_artifact a static function
It is only used in lasso/saml-2.0/profile.c anyway.
2010-09-03 19:02:42 +02:00
Benjamin Dauvergne 90fda9d556 [Core] load signature parameters
Generic signature parameters (attached as qdata to nodes) is now
reloaded when initializing a node from XML for a node type with a
signature snippet in its metadatas.

It fixes the problematic usage of ciphered private keys with the
HTTP-Artifact binding (which needs to keep a copy of the AuthnResponse
around and to sign it later).
2010-09-03 19:02:41 +02:00
Benjamin Dauvergne 5f5942a4dd [Core] add private function to read an integer attribute
This function does integer parsing and range checks, it returns TRUE if
all goes well.
2010-09-03 19:02:41 +02:00
Benjamin Dauvergne c3985f6f6d [Core] add LAST enum values to LassoSignatureMethod and LassoSignatureType enumerations
It helps making range checks.
2010-09-03 19:02:41 +02:00
Benjamin Dauvergne 35ff3d6950 [Strings] add string constant for the internal XML attributes used in dumps
Add string constants for signature method, signature type, private key
(file path or content), private key password and certificate (file path
or content).

Add cast for xmlChar constant strings definition in python bindings, it
assumed all constant strings were char*.
2010-09-03 19:02:37 +02:00
Benjamin Dauvergne 8ebeeb9a36 [DOAP] fix typos
Tags were badly formatted.
2010-08-31 11:36:33 +02:00
Benjamin Dauvergne 88236da2d2 [SAMLv2] mark Redirect binding as an invalid binding for return AuthnResponse
This is really not supported by the SAMLv2 protocol.
2010-08-25 19:02:22 +02:00
Benjamin Dauvergne 3769decc58 [SAMLv2] fix string in comment 2010-08-25 19:02:01 +02:00
Benjamin Dauvergne 2ab81b8e6f [SAMLv2] replace use of lasso_provider_get_default_name_id_format with direct use of lasso_provider_get_metadata_one_for_role
The first is trying to use provider->role to know which kind of role
descriptor to lookup, but for the server object this field is 0 and when
building authn request we know that we want our default NameIDFormat for
the SP sso descriptor.
2010-08-25 19:00:36 +02:00
Benjamin Dauvergne 908d4288a0 [SAMLv2] rebuild specialized LassoProvider methods upon new endpoints storage
The new way of storing endpoints allows to keep ordering between
endpoints with respect to the order of the index and isDefault field for
indexed endpoint type, and to the XML node orders for other endpoints.

It also simplifies the code.
2010-08-25 18:57:25 +02:00
Benjamin Dauvergne 5c85507ffd [Core] add destroy code for new private field endpoints
The contained string must be disallocated if the object is destroyed.
2010-08-25 18:55:04 +02:00
Benjamin Dauvergne fb8ed0e264 [Core] add structure to store endpoints type for metadata files
This new C structure will allow to filter ID-FFv1.2 and SAMLv2 endpoints
more easily.
2010-08-25 16:33:58 +02:00
Benjamin Dauvergne 4b05610fa5 [XML] use strtol instead of atoi to parse XSchema integers
This commit also reject negative integers from being parsed (all integers
in SAMLv2 and ID-FFv1.2 schemas are positive integers).
2010-08-25 15:43:09 +02:00
Benjamin Dauvergne fc9c2738c6 [SAMLv2] when AuthnRequest contains invalid attributes returns INVALID_REQUEST not NO_DEFAULT_ENDPOINT
This is the right status to return.
2010-08-25 15:41:55 +02:00
Frédéric Péters 2736139ffe Fixed underlining of title 2010-08-25 14:23:35 +02:00
Benjamin Dauvergne 72e581f8cf [Core] fix change of enumeration value
This change broke the API, revert it.
2010-08-05 14:07:02 +02:00
Benjamin Dauvergne 66f314b191 [Website] update download link on front page 2010-07-27 16:28:16 +02:00
Benjamin Dauvergne b8aa645569 [Website] fix typos 2010-07-27 16:26:27 +02:00
Benjamin Dauvergne 7f6331f73f [Website] fix source and download links
The source repository is now the git repository on dev.entrouvert.org.
Latest source release is 2.3.0. And git browser is included in our
redmine.
2010-07-27 16:20:54 +02:00
Benjamin Dauvergne 1681bc52eb [Website] change position of Download block in right bar 2010-07-27 16:13:41 +02:00
Benjamin Dauvergne 31a26948bf [Website] in convert-to-static.py, work around errors in build logs
If Build() constructor fails, keep going.
2010-07-27 16:13:07 +02:00
Benjamin Dauvergne 274670628f [Website] fix wrong structure for the news file about release 2.3.0 2010-07-27 15:52:49 +02:00
Benjamin Dauvergne 20a1566dd8 [Website] import convert-to-static.py modification from lupin 2010-07-27 15:06:06 +02:00