Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [Core] dump custom signature parameters in lasso dumps | Benjamin Dauvergne | 2010-07-16 | 1 | -0/+32 | |
| | | | | | | | | | | The signature parameters are serialized as global attributes from the http://lasso.entrouvert.org/lasso/namespaces/0.0 named: SignatureType SignatureMethod PrivateKey PrivateKeyPassword Certificate | |||||
* | [Core] add lasso_node_set_signature and lasso_node_get_signature | Benjamin Dauvergne | 2010-07-16 | 2 | -0/+89 | |
| | | | | | | 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. | |||||
* | [Core] extract signature adding into base class method lasso_node_get_xmlNode | Benjamin Dauvergne | 2010-07-12 | 9 | -155/+78 | |
| | | | | | | | | | | | | | | | 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. | |||||
* | [SAMLv2] if service provider supports logout, add a SessionIndex from the ↵ | Benjamin Dauvergne | 2010-07-12 | 1 | -0/+6 | |
| | | | | | | | | 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. | |||||
* | [Core] lasso_check_version does not return a proper error code | Benjamin Dauvergne | 2010-07-12 | 1 | -1/+1 | |
| | | | | | lasso_check_version returns 0, 1 or -1 and one is not a proper error code, so the original int return type is kept. | |||||
* | [Core] change return type of all error returning methods | Benjamin Dauvergne | 2010-07-12 | 33 | -191/+191 | |
| | | | | | The new return type is lasso_error_t, it should allow to pinpoint easily methods returning an error code in bindings. | |||||
* | [Core] add a lasso_error_t typedef | Benjamin Dauvergne | 2010-07-12 | 3 | -1/+42 | |
| | | | | | | This typedef will serve to mark error returning methods. The ctypes.h header piggyback on export.h to be included in all public headers. | |||||
* | [Provider] Fix loading of provider without a public key | Benjamin Dauvergne | 2010-07-05 | 1 | -15/+32 | |
| | | | | | This commit also emit propre warning when loading fails for a provider *with* a public key. | |||||
* | [Core] add macro to release an xmlNodeList object | Benjamin Dauvergne | 2010-06-29 | 1 | -0/+3 | |
| | ||||||
* | [Core] add macro to release GList of xmlNodeList | Benjamin Dauvergne | 2010-06-29 | 1 | -0/+3 | |
| | ||||||
* | [Core] add macros to manipulate xmlNodeList and GList of xmlNodeList | Benjamin Dauvergne | 2010-06-29 | 1 | -0/+21 | |
| | | | | | The method to copy them is xmlCopyNodeList and not xmlCopyNode, so we need another set of macros. | |||||
* | Merge branch 'issue-101' | Benjamin Dauvergne | 2010-06-29 | 1 | -52/+72 | |
| | ||||||
* | Merge branch 'issue-88' | Benjamin Dauvergne | 2010-06-29 | 2 | -5/+15 | |
| | ||||||
* | Merge branch 'issue-86' | Benjamin Dauvergne | 2010-06-29 | 2 | -0/+138 | |
| | ||||||
* | [XML] in lasso_node_export_to_paos_request check return value of ↵ | Benjamin Dauvergne | 2010-06-17 | 1 | -0/+4 | |
| | | | | lasso_node_get_xmlNode | |||||
* | [XML] in _lasso_node_export_to_base64 check return value of ↵ | Benjamin Dauvergne | 2010-06-17 | 1 | -0/+2 | |
| | | | | lasso_node_export_to_xml | |||||
* | [XML] in _lasso_node_export_to_xml check return value of lasso_node_get_xmlNode | Benjamin Dauvergne | 2010-06-17 | 1 | -0/+3 | |
| | ||||||
* | [Core] do not ignore keep_xmlnode flag inherited from parent classes | Benjamin Dauvergne | 2010-06-15 | 1 | -3/+9 | |
| | | | | | | We only looked to the keep_xmlnode flag in the node data of the top level class, but any parent class can set this flag and in this case we must honor it too. | |||||
* | Core: when reloading a dump, use the signing private key password for ↵ | Benjamin Dauvergne | 2010-06-14 | 1 | -1/+1 | |
| | | | | | | | | | | | loading the encryption private key We currently do not store the encryption private key, instead on reload of a dump, we try to use the signing private key as the encryption private key. But we forgot to use the stored private key password. That's now fixed. Next step would be to keep the encryption private key around also. | |||||
* | Core: move logging function and macros to their own module, adapt perl binding | Benjamin Dauvergne | 2010-06-12 | 9 | -95/+211 | |
| | ||||||
* | Core: move lasso_strerror declaration to errors.h | Benjamin Dauvergne | 2010-06-12 | 2 | -2/+4 | |
| | ||||||
* | SAMLv2: rename lasso_saml2_name_id_build_persistent to ↵ | Benjamin Dauvergne | 2010-06-12 | 2 | -0/+22 | |
| | | | | | | | lasso_saml2_name_id_new_with_persistent_format * keep the old one for compatibility * new one will be picked by bindings as a constructor | |||||
* | SAMLv2: when initializing signture on assertion, setup an ID if there is none | Benjamin Dauvergne | 2010-06-12 | 1 | -0/+3 | |
| | | | | * without the ID lasso refuse to sign (it's mandatory) | |||||
* | SAMLv2: in lasso_assertion_query_build_request_msg setup nameid | Benjamin Dauvergne | 2010-06-12 | 1 | -2/+6 | |
| | | | | | | | * lasso_profile_get_nameIdentifier does not return profile->nameIdentifier , so we first try to use profile->nameIdentifier and if it is NULL we use lasso_profile_get_nameIdentifier. | |||||
* | Core: update lasso_iso_8601_gmt_to_time_t to support milliseconds | Benjamin Dauvergne | 2010-06-10 | 2 | -5/+42 | |
| | | | | | | | | | | | * We now support the two possible formats for xsdtime XSchema datatype: - dddd-dd-ddTdd:dd:ddZ - dddd-dd-ddTdd:dd:dd.d*Z Where d denotes a digit, and * is the kleene star. XSD datetime also supports negative years, but as we cannot represent them with time_t, we can reject it at the lexical level. | |||||
* | Fix long lines in lasso/id-ff/server.c | Benjamin Dauvergne | 2010-06-10 | 1 | -6/+10 | |
| | ||||||
* | Core: add method lasso_server_set_encryption_private_key_with_password | Benjamin Dauvergne | 2010-06-10 | 2 | -7/+35 | |
| | | | | * fixes #91. | |||||
* | SAMLv2: add new methods to class LassoAssertionQuery | Benjamin Dauvergne | 2010-06-10 | 4 | -0/+126 | |
| | | | | | | | | * lasso_assertion_query_add_attribute_request: helper to setup request attribute for AttributeQuery messages. * lasso_assertion_query_get_request_type: method to find the type of the last received query. * fixes #90 | |||||
* | SAMLv2: fix initialization of subject in lasso_assertion_query_build_request_msg | Benjamin Dauvergne | 2010-06-10 | 1 | -8/+10 | |
| | ||||||
* | Import tools in utils.h | Benjamin Dauvergne | 2010-06-10 | 1 | -0/+2 | |
| | ||||||
* | Fix collision between defined symbols in tools.h and private.h | Benjamin Dauvergne | 2010-06-10 | 1 | -3/+3 | |
| | ||||||
* | Change all logging to use message() | Benjamin Dauvergne | 2010-06-09 | 8 | -24/+24 | |
| | ||||||
* | Core: in xml error message handler, escape messages to fit on one line | Benjamin Dauvergne | 2010-06-09 | 1 | -2/+11 | |
| | ||||||
* | Core: remove arrow in log messages | Benjamin Dauvergne | 2010-06-09 | 1 | -1/+1 | |
| | ||||||
* | Utils: add function to extract/create node in lists | Benjamin Dauvergne | 2010-06-09 | 9 | -1/+38 | |
| | | | | | * lasso_extract_gtype_from_list_or_new will help for method with create or extend nodes in lists. | |||||
* | Add new lasso_log_set_handler and lasso_log_remove_handler functions | Frederic Peters | 2010-06-09 | 2 | -0/+40 | |
| | | | | | They are modeled around the g_log... functions of GLib, they just don't have a domain parameter. | |||||
* | SAMLv2: make role checking inactive for LassoServer | Benjamin Dauvergne | 2010-06-06 | 1 | -2/+4 | |
| | | | | | * LassoServer have no role defined, so checking breaks loading of metadata for LassoServer. | |||||
* | ID-FFv1.2: for idp initiated sso accept any nameIdPolicy | Benjamin Dauvergne | 2010-06-06 | 1 | -7/+0 | |
| | | | | * IdP initiated SSO can be of any kind, no need to limit it. | |||||
* | SAML 2.0: add checks for proper loading of role descriptors | Benjamin Dauvergne | 2010-06-04 | 1 | -4/+13 | |
| | | | | | | * remove warning for descriptors supporting non SAML 2.0 protocols * checks that at least one descriptor was loaded and that it was for our assigned role. | |||||
* | SAMLv2: fix error in naming of function in the documentation | Benjamin Dauvergne | 2010-06-04 | 1 | -2/+2 | |
| | ||||||
* | SAMLv2: remove HTTP-Redirect as right binding for AssertionConsumer | Benjamin Dauvergne | 2010-05-31 | 1 | -1/+0 | |
| | ||||||
* | SAMLv2: fix bug giving UnuspportedProfile for SingleSignOn with HTTP-POST | Benjamin Dauvergne | 2010-05-31 | 1 | -1/+1 | |
| | | | | | * The string constant in lasso_saml20_provider_accept_http_method was HTTP-Post instead of HTTP-POST. | |||||
* | Core: fix extraction of relaystate when URLs contains only one kind of ↵ | Benjamin Dauvergne | 2010-05-31 | 1 | -1/+1 | |
| | | | | separators | |||||
* | SAMLv2: simplify lasso_saml20_provider_accept_http_method by only checking ↵ | Benjamin Dauvergne | 2010-05-31 | 1 | -12/+3 | |
| | | | | | | | for remote provider support * Whatever we do, with asyncrhonous bindings the remote provider can return the response with any asynchronous binding. | |||||
* | SAML 2.0: in lasso_login_build_assertion set conditions time limit, no ↵ | Benjamin Dauvergne | 2010-05-31 | 1 | -4/+2 | |
| | | | | SubjectConfirmationData limits | |||||
* | SAML 2.0: in lasso_login_build_assertion do not conflate sessionNotOnOrAfter ↵ | Benjamin Dauvergne | 2010-05-31 | 1 | -4/+0 | |
| | | | | with assertion condition notOnOrAfter | |||||
* | SAMLv2: conflate Responder and Requester when checking second level status code | Benjamin Dauvergne | 2010-05-11 | 1 | -1/+2 | |
| | | | | | | * lasso/saml-2.0/login.c: I'm not sure that most IdP really make the semantic distinction between those two first level status codes, so just conflate them. | |||||
* | SAMLv2: remove warning message for invalid signature on AuthnResponse messages | Benjamin Dauvergne | 2010-05-11 | 1 | -4/+0 | |
| | | | | | | * lasso/saml-2.0/login.c: we already return an error, no need to clutter the output with warning messages. | |||||
* | SAML 2.0 Helper: add lasso_saml2_assertion_set_one_time_use | Benjamin Dauvergne | 2010-05-01 | 2 | -1/+27 | |
| | ||||||
* | Fix bad initialization of an rc field from revision 4837 | Benjamin Dauvergne | 2010-05-01 | 1 | -1/+1 | |
| |