summaryrefslogtreecommitdiffstats
path: root/tests/login_tests.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>
* fix compilation errors on 64bits architecturesBenjamin Dauvergne2013-09-081-1/+1
| | | | | * sizeof(unsigned int) != sizeof(size_t) * INT_MAX != LONG_MAX
* [tests] remove work-around for letting ID-FF 1.2 tests work with the ↵Benjamin Dauvergne2011-12-231-21/+24
| | | | | | | thin-sessions flag activated But when thin-sessions is activated we use the new way of passing artifact message content around.
* [tests] protect the ID-FF 1.2 test cases from effect of the thin-sessions ↵Benjamin Dauvergne2011-12-221-2/+19
| | | | flag until it is migrated to work also with thin sessions
* Simplify useless complexity in include pathsBenjamin Dauvergne2011-12-161-2/+2
|
* [tests] improve checking for log outputBenjamin Dauvergne2011-12-161-0/+3
| | | | | | | | | | | - now any non expected log output is considered an error, by setting a g_log default handler. - block_lasso_logs()/unblock_lasso_logs() will block logging output at the DEBUG level - begin_check_do_log(level, message, endswith)/end_check_do_log() with check that the only message emitted between the two macros is one equals to "message" at the level "level", or ending (to work around variable parts in a log message) with "message" if "endswith" is True.
* [tests] rename login test suite, with mentions of ID-FF 1.2 and SAML 2.0Benjamin Dauvergne2011-12-161-1/+1
|
* [tests] use helper macros in id-ff test caseBenjamin Dauvergne2011-12-051-31/+26
|
* [tests] remove spurious outputBenjamin Dauvergne2011-03-291-2/+0
|
* [tests] add test case for multiple load and dump of the same objectBenjamin Dauvergne2011-03-011-0/+72
|
* [tests] include header for backward compatible methods on GHashTable structuresBenjamin Dauvergne2010-11-171-0/+1
|
* [Core] replace all use of g_strcmp0 by lasso_strisequal and lasso_strisnotequalBenjamin Dauvergne2010-10-011-2/+2
| | | | | Too much human errors with strcmp kind of functions. Also change name os lasso_is_empty_string to lasso_strisempty.
* Initialize all uninitialized rc variablesBenjamin Dauvergne2010-04-301-2/+2
|
* Tests: add more checking to dump generation code in login_tests.cBenjamin Dauvergne2010-02-041-5/+9
|
* Tests: in tests/login_tests.c, change path of header utils.hBenjamin Dauvergne2010-01-041-1/+1
|
* All: Rework include files handling, separated ID-WSF code from SAML2/ID-FF codeBenjamin Dauvergne2009-08-261-1/+1
| | | | | | | | | | | | | * 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.
* Fix leaks in testsBenjamin Dauvergne2009-04-301-0/+1
| | | | | | | | | * basic_tests.c: * login_tests.c: * login_tests_saml2.c: * random_tests.c: free replaced string, unref used nodes, initialize local variables when necessary, free newly allocated strings.
* Core: add an header file for backward compatibilityBenjamin Dauvergne2009-04-141-0/+1
| | | | | | | | | | | * lasso/backward_comp.h: this header will contain substitue function, defines or types for compatibility with older versions of dependencies. * lasso/utils.h: remove declaration of g_strcmp0 * lasso.c: * tests/login_tests.c: use backward_comp.h
* Tests&Core: add g_strcmp0 if glib is oldBenjamin Dauvergne2009-04-021-0/+1
| | | | | | | | * lasso/utils.h: if glib is older than 2.16, export g_strcmp0 as part of internal headers, in order to use it in login_tests.c * tests/login_tests.c: include utils.h
* Test: add missing release of objects and memoryBenjamin Dauvergne2009-03-271-7/+34
| | | | | | | | | * tests/basic_tests.c: * tests/login_tests.c: * tests/metadata_tests.c: * tests/random_tests.c: * tests/tests.c: add missing g_free and g_object_unref calls.
* ID-FF 1.2 Tests: Add test for relaystateBenjamin Dauvergne2009-03-271-2/+18
| | | | | | * tests/login_tests.c: - (test02_serviceProviderLogin) add assertion concerning the relaying of the RelayState parameter during an SP initiated SSO.
* Test: Add test for testing new InResponseTo checking codeBenjamin Dauvergne2009-03-031-1/+17
| | | | | | | * tests/login_tests.c: after first test of parsing the soap response message in the login test, try to parse it a second time, after modifying the InResponseTo id of the assertion and disabling signature checking.
* Add test case for loading server completely from memoryBenjamin Dauvergne2008-11-021-0/+167
| | | | | | | | * tests/login_test.c: - add generateIdentityProviderContextDumpMemory that first load metadata, private_key and certificate file using g_file_get_contents then use the created buffers to initialize a LassoServer object. - add test03_serviceProviderLogin that use the new function.
* * Remove ending blanksBenjamin Dauvergne2008-09-121-4/+4
|
* updated Copyright dates in all filesDamien Laniel2007-05-301-1/+1
|
* fixed memory leaksFrederic Peters2007-01-161-0/+2
|
* cleaning up memory allocated for tests; so valgrind logs are cleanerFrederic Peters2007-01-051-1/+7
|
* Updated Copyright and authors.Emmanuel Raviart2005-01-221-3/+3
|
* API change in Single Sign On profile (IdP side) to allow the developer to messFrederic Peters2004-12-141-4/+7
| | | | | | with <lib:Assertion/> Outlined in http://lists.labs.libre-entreprise.org/pipermail/lasso-devel/2004-December/001119.html
* updated test to new apiFrederic Peters2004-12-141-2/+3
|
* indentation leftoversFrederic Peters2004-11-251-3/+3
|
* tests are okFrederic Peters2004-11-151-1/+1
|
* updated testsFrederic Peters2004-11-151-13/+15
|
* Done with the move to structures and the removal of protocols/ (lasso branchedFrederic Peters2004-10-271-19/+18
| | | | | | | | 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.
* Updated login C tests to new API for obtaining consent.Emmanuel Raviart2004-09-301-1/+4
|
* Updated C tests to lasso_server_new new API.Emmanuel Raviart2004-09-291-6/+4
|
* Updated to new API (but it doesn't work yet).Emmanuel Raviart2004-09-221-8/+14
|
* Converted C login test to new login API.Emmanuel Raviart2004-09-031-9/+21
|
* Moved param 'http_method' of lasso_login_build_authn_request_msg() methodValery Febvre2004-08-211-3/+2
| | | | | in lasso_login_init_authn_request() BEWARE : this change breaks the API
* Added new argument to lasso_login_build_authn_request_msg.Emmanuel Raviart2004-08-201-1/+2
|
* certs are not in builddir; take care of thatFrederic Peters2004-08-191-12/+12
|
* removed logout part from C test 2; it would work now.Frederic Peters2004-08-191-58/+0
| | | | But http://buildbox.entrouvert.org/logs/20040818/lupin.1820.changelog.xml
* trying to fix login test 2Frederic Peters2004-08-141-1/+5
|
* Added metadata corresponding to new certificates.Emmanuel Raviart2004-08-121-16/+15
| | | | Updated non regression tests to use these certificates and metadata.
* Slightly corrected C test.Emmanuel Raviart2004-08-091-3/+3
|
* replace load_request_msg() with process_request_msg(), process_request() ↵Nicolas Clapies2004-08-031-3/+3
| | | | with validate_request(), remove assertion of the authenticated principal in validate_request()
* updateValery Febvre2004-07-301-38/+38
|
* modularized tests; it is now possible to add more suites easily.Frederic Peters2004-07-281-36/+2
|
* fixed warningsFrederic Peters2004-07-271-2/+2
|
* Removed obsolete logout method load_from_dump.Emmanuel Raviart2004-07-261-2/+2
| | | | | | | | Upgraded some residual calls to login_new & logout_new. Updated Java binding. Java unit test works (and C too, but Python still doesn't).