summaryrefslogtreecommitdiffstats
path: root/tests/login_tests.c
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-12-14 19:20:20 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-12-14 19:20:20 +0000
commitad056adf3699d7162858ccae0faaacfc5ac24882 (patch)
tree154311be0f549793690f2cca0e5d742339bd1ea1 /tests/login_tests.c
parent2bda2b596eaaa5c83aca90ea73b9bbec31985a5b (diff)
downloadlasso-ad056adf3699d7162858ccae0faaacfc5ac24882.tar.gz
lasso-ad056adf3699d7162858ccae0faaacfc5ac24882.tar.xz
lasso-ad056adf3699d7162858ccae0faaacfc5ac24882.zip
API change in Single Sign On profile (IdP side) to allow the developer to mess
with <lib:Assertion/> Outlined in http://lists.labs.libre-entreprise.org/pipermail/lasso-devel/2004-December/001119.html
Diffstat (limited to 'tests/login_tests.c')
-rw-r--r--tests/login_tests.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/login_tests.c b/tests/login_tests.c
index 476da514..d1058d86 100644
--- a/tests/login_tests.c
+++ b/tests/login_tests.c
@@ -136,15 +136,18 @@ START_TEST(test02_serviceProviderLogin)
"protocoleProfile should be ProfileBrwsArt");
fail_unless(! lasso_login_must_ask_for_consent(idpLoginContext),
"lasso_login_must_ask_for_consent() should be FALSE");
- rc = lasso_login_build_artifact_msg(idpLoginContext,
+ rc = lasso_login_validate_request_msg(idpLoginContext,
1, /* authentication_result */
- 0, /* is_consent_obtained */
+ 0 /* is_consent_obtained */
+ );
+
+ rc = lasso_login_build_assertion(idpLoginContext,
LASSO_SAML_AUTHENTICATION_METHOD_PASSWORD,
"FIXME: authenticationInstant",
"FIXME: reauthenticateOnOrAfter",
"FIXME: notBefore",
- "FIXME: notOnOrAfter",
- LASSO_HTTP_METHOD_REDIRECT);
+ "FIXME: notOnOrAfter");
+ rc = lasso_login_build_artifact_msg(idpLoginContext, LASSO_HTTP_METHOD_REDIRECT);
fail_unless(rc == 0, "lasso_login_build_artifact_msg failed");
idpIdentityContextDump = lasso_identity_dump(LASSO_PROFILE(idpLoginContext)->identity);