summaryrefslogtreecommitdiffstats
path: root/lasso/id-ff/profile.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix license boilerplatesSimo Sorce2013-12-031-2/+1
| | | | | | | Instad of referring to an old FSF address, point the reader to the FSF website where the latest licenses and addresses are published. Signed-off-by: Simo Sorce <simo@redhat.com>
* [doc] do some documentation fixingBenjamin Dauvergne2011-12-221-1/+1
|
* Simplify useless complexity in include pathsBenjamin Dauvergne2011-12-161-1/+1
|
* [xml] rewrite schema directed serialization/deserialization methodsBenjamin Dauvergne2011-12-161-70/+6
| | | | | | | | | | | | | | | | | | | | | | | | The new implementations of lasso_node_impl_init_from_xml now validate namespace of all child nodes befores parsing. It stops on any error. For node which implement their own parsing of an attribute or a node, it must declare an XmlSnippet with an offset field set to 0. The 0 value is invalid for public GObject structure (it's the place of the GObject machinery like the reference count). The 0 offset can be used for XmlSnippet in a private structure, so never set the offset to 0 with the flag SNIPPET_PRIVATE, for a field which is parsed by you get_xmlNode virtual method. Other ameliorations in this commit is the possibility to set attributes with namespace when using the flags SNIPPET_ATTRIBUTE|SNIPPET_ANY. The syntax for an attribute is inspired by the element tree API from Python: {namespace}attribute_name an example: {http://www.w3.org/2001/XMLSchema-instance}type for the classic xsi:type attribute.
* [wsf] fix wsf preprocessor conditionalsBenjamin Dauvergne2011-01-041-0/+1
|
* [profile] prefer to lookup the session before the identity for looking up a ↵Benjamin Dauvergne2010-12-171-14/+14
| | | | name identifier;
* [Core] replace all use of g_strcmp0 by lasso_strisequal and lasso_strisnotequalBenjamin Dauvergne2010-10-011-3/+3
| | | | | Too much human errors with strcmp kind of functions. Also change name os lasso_is_empty_string to lasso_strisempty.
* [Core] fix break of lasso_profile_get_request_type_from_soap_msg from commit ↵Benjamin Dauvergne2010-09-291-2/+2
| | | | | | b9d535625 ManageNameIDRequest is not an ID-WSF kind of request.
* [ID-WSFv1&ID-WSFv2] separate better strings for ID-WSF from other stringsBenjamin Dauvergne2010-09-091-0/+6
| | | | | | 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.
* Add a lasso_profile_get_signature_status methodBenjamin Dauvergne2010-05-011-0/+16
|
* Ameliorate support for lasso_profile_set_signature_verify_hintBenjamin Dauvergne2010-04-161-6/+21
| | | | | | | | | | | | | | | | | | | | * lasso/id-ff/profile.h: - add end symbol for enum LassoProfileSignatureVerifyHint * lasso/id-ff/profile.c: - fix documentation of lasso_profile_set_signature_verify_hint - do not allow to set or return invalid value for the signature_verify_hint attribute. * lasso/saml-2.0/login.c: - handle new enum value * lasso/saml-2.0/profile.c: - handle new enum value - fix missing catch of signature error reporting when signature_verify_hint is IGNORE. * docs/reference/lasso/lasso-sections.txt: - export enums LassoProfileSignatureHint and LassoProfileSignatureVerifyHint * tests/metadata_tests.c: - fix test of all Role enumerations
* Core: add method to check whether we are IdP or SP of another providerBenjamin Dauvergne2010-03-271-0/+56
| | | | | | | | * 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.
* Add signature_verify_hint accessor methods to LassoProfileBenjamin Dauvergne2010-03-271-0/+35
| | | | | | | | | | * 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.
* Core: add an helper method to build a SOAP response in a LassoProfile objectBenjamin Dauvergne2010-03-021-0/+36
| | | | | | | | | | | | | * 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.
* Core: add missing return value owner semantic annotations to gettersBenjamin Dauvergne2010-02-171-1/+30
| | | | | | | * 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.
* Core: add annotation to getter function about return value owner semanticBenjamin Dauvergne2010-02-171-4/+4
| | | | | | | | | * lasso/id-ff/identity.c lasso/id-ff/profile.c: precise owner semantic of lasso_profile_get_identity, lasso_profile_get_session, lasso_profile_get_server * lasso/id-wsf-2.0/saml2_login.c tests/login_tests_saml2.c: in the same vein add missing release of assertion returned by lasso_login_get_assertion which return a caller owned object.
* ID-WSF 2.0: add strings for Discovery service ActionsBenjamin Dauvergne2010-02-171-1/+1
|
* Core: in lasso_profile_get_request_type_from_soap_msg use ↵Benjamin Dauvergne2010-02-041-2/+10
| | | | | | | | lasso_xml_parse_memory_with_error * lasso/id-ff/profile.c: (lasso_profile_get_request_type_from_soap_msg) use lasso_xml_parse_memory_with_error instead of xmlParseMemory, use error code output argument to log error reports.
* Fix leaks, change signature of lasso_provider_get_sp_name_qualifier, make it ↵Benjamin Dauvergne2010-02-041-1/+1
| | | | return a const char*
* Core Profile: remove need for identity in lasso_profile_get_nameIdentifierBenjamin Dauvergne2010-01-121-11/+11
|
* SAML 2.0: overhaul for ubuquitous binding support, still need work for ↵Benjamin Dauvergne2010-01-121-15/+68
| | | | HTTP-Artefact
* Core: in profile.c, profile.h, profileprivate.h, add a new attribute to ↵Benjamin Dauvergne2010-01-121-0/+32
| | | | express signature needs
* Restore ancient semantic of lasso_profile_is_session_dirtyBenjamin Dauvergne2009-11-301-1/+1
| | | | | * lasso/id-ff/profile.c: lasso_is_session_dirty must return FALSE if session is NULL.
* Core: factorize code to obtain a SPNameQualifierBenjamin Dauvergne2009-10-301-6/+1
| | | | | | | | | | * 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.
* Core: in profile, use lasso_server_get_providerBenjamin Dauvergne2009-10-301-2/+4
| | | | | | - lasso/id-ff/profile.c: replace direct access to server->provider by lasso_server_get_provider.
* Do not use g_new, use g_new0Benjamin Dauvergne2009-09-291-1/+1
| | | | | | | | | | | | | * lasso/id-ff/federation.c: * lasso/id-ff/logout.c: * lasso/id-ff/profile.c: * lasso/id-ff/provider.c: * lasso/id-ff/server.c: * lasso/id-ff/session.c: * lasso/id-wsf/authentication.c: * lasso/saml-2.0/ecp.c: * lasso/xml/xml.c: even for private datas, use g_new0, it is safer.
* All: Rework include files handling, separated ID-WSF code from SAML2/ID-FF codeBenjamin Dauvergne2009-08-261-9/+9
| | | | | | | | | | | | | * 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.
* ID-FF&Core: Seal public field of LassoSessionBenjamin Dauvergne2009-08-261-3/+2
| | | | | | | | | | | | | | | | | | * id-ff/session.h: seal public fields. * id-ff/session.c, id-ff/sessionprivate.h: add accessors for reading the is_dirty flag and counting store assertions. * id-ff/logout.c, id-ff/login.c, saml-2.0/login.c, saml-2.0/logout.c, saml-2.0/profile.c: use the new accessors. * id-ff/profile.c: include the private header file, use the new accessors, and remove unnecessary setting of is_dirty to FALSE (it should be false at instanciation). * utils.h: add a macro to access private content, prepare for using G_TYPE_INSTANCE_GET_PRIVATE and the GObject infrastructure for private structures eventually.
* ID-FF 1.2: Fix leaks, reduce codeBenjamin Dauvergne2009-04-301-40/+17
| | | | | | | | | | * id-ff/login.c: * id-ff/logout.c: * id-ff/profile.c: * id-ff/provider.c: * id-ff/server.c: fix leaks by using field setting macros which frees previous values, it also reduce code length sometimes.
* new function lasso_profile_get_server()Benjamin Dauvergne2009-04-271-0/+26
| | | | | | | | | | * 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.
* ID-FF 1.2: Add trace in dispose for LassoProfileBenjamin Dauvergne2009-03-271-0/+5
| | | | | | | * lasso/id-ff/profile.c: add tracing code activaged by LASSO_FLAG=memory-debug to print release of field values. Complement the existing code in generic deallocation procedure in LassoNode.
* Core: do not mix public and private headersBenjamin Dauvergne2009-03-271-0/+1
| | | | | * lots of files: explicitely load the internal header xml/private.h where needed.
* All: Fix missing field initializer problemsBenjamin Dauvergne2009-01-241-9/+10
| | | | | | * 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.
* Remove use of xmlFreeDoc for lasso_release_docBenjamin Dauvergne2008-11-041-1/+2
| | | | | | | | | | | | | | - bindings/java/wrapper_top.c, bindings/php4/lasso_php4_helper.c, bindings/php5/wrapper_source_top.c, bindings/python/wrapper_top.c, lasso/id-ff/identity.c, lasso/id-ff/lecp.c, lasso/id-ff/login.c, lasso/id-ff/logout.c, lasso/id-ff/name_registration.c, lasso/id-ff/profile.c, lasso/id-ff/provider.c, lasso/id-ff/server.c, lasso/id-ff/session.c, lasso/id-wsf-2.0/data_service.c, lasso/id-wsf/data_service.c, lasso/id-wsf/discovery.c, lasso/id-wsf/wsf_profile.c, lasso/saml-2.0/ecp.c, lasso/saml-2.0/login.c, lasso/saml-2.0/name_id_management.c, lasso/utils.h, lasso/xml/tools.c, lasso/xml/xml.c, swig/Lasso.i: Remove use of xmlFreeDoc. Use lasso_release_doc instead.
* * Remove ending blanksBenjamin Dauvergne2008-09-121-7/+7
|
* fixed order of freeing callsFrederic Peters2008-07-221-2/+2
| | | | (stolen from ec76ae4f7e40e99443ad421a85ec4d3fb7359bf3)
* added some more missing unreferenceDamien Laniel2008-05-221-0/+6
|
* useless variables detroyer; they're already freed by snippetsDamien Laniel2008-05-211-35/+0
|
* fixed some reference counting and memory managementDamien Laniel2008-05-201-0/+39
|
* moved gtk-doc inline as is better on so many points; also added schemaFrederic Peters2008-05-151-0/+6
| | | | fragments to published doc
* formatting fix in docstringFrederic Peters2007-11-221-1/+1
|
* fixed class hierarchy, with ID-WSF 2 specific stuffs going intoFrederic Peters2007-06-191-11/+0
| | | | LassoIdWsf2Profile (which now inherits from LassoProfile).
* moved soap_envelope_request and soap_envelope_response to ProfilePrivate to ↵Damien Laniel2007-06-181-8/+8
| | | | avoid ABI breackage
* initialise and destroy new attributesDamien Laniel2007-06-131-0/+11
|
* differentiate between id-wsf 1 & 2 since this is what is expected in otherFrederic Peters2007-06-081-2/+3
| | | | places (won't work as easily for DST)
* recognize ID-WSF 2 disco query messagesFrederic Peters2007-06-081-1/+2
|
* updated Copyright dates in all filesDamien Laniel2007-05-301-1/+1
|
* added id-wsf 2.0 request types + added a missing includeDamien Laniel2007-04-251-0/+4
|
* removing white space lost in a tabFrederic Peters2007-01-061-1/+1
|
* new lasso_profile_clean_msg_info function used to clean msg_url and msg_bodyFrederic Peters2007-01-051-0/+13
| | | | | (free()ing and setting to NULL) in functions where those variables are later set.