summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-08-21 17:12:21 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-08-21 17:12:21 +0000
commit5dc6f94ffd3bbf0d45559068c86da4247bd454e8 (patch)
tree13cf6efee4e35b60c0d91347b1bb34429bfdd0ca /tests
parent87e3c2dbfc60a82b6d4b48f2bc2b4f34e3c6abad (diff)
downloadlasso-5dc6f94ffd3bbf0d45559068c86da4247bd454e8.tar.gz
lasso-5dc6f94ffd3bbf0d45559068c86da4247bd454e8.tar.xz
lasso-5dc6f94ffd3bbf0d45559068c86da4247bd454e8.zip
Moved param 'http_method' of lasso_login_build_authn_request_msg() method
in lasso_login_init_authn_request() BEWARE : this change breaks the API
Diffstat (limited to 'tests')
-rw-r--r--tests/login_tests.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/login_tests.c b/tests/login_tests.c
index ad65c902..6b261f30 100644
--- a/tests/login_tests.c
+++ b/tests/login_tests.c
@@ -104,7 +104,7 @@ START_TEST(test02_serviceProviderLogin)
spLoginContext = lasso_login_new(spContext);
fail_unless(spLoginContext != NULL,
"lasso_login_new() shouldn't have returned NULL");
- rc = lasso_login_init_authn_request(spLoginContext);
+ rc = lasso_login_init_authn_request(spLoginContext, lassoHttpMethodRedirect);
fail_unless(rc == 0, "lasso_login_init_authn_request failed");
fail_unless(LASSO_PROFILE(spLoginContext)->request_type == \
lassoMessageTypeAuthnRequest, "request_type should be AuthnRequest");
@@ -115,8 +115,7 @@ START_TEST(test02_serviceProviderLogin)
lasso_lib_authn_request_set_consent(request, lassoLibConsentObtained);
relayState = "fake";
lasso_lib_authn_request_set_relayState(request, "fake");
- rc = lasso_login_build_authn_request_msg(spLoginContext, "https://idp1/metadata",
- lassoHttpMethodRedirect);
+ rc = lasso_login_build_authn_request_msg(spLoginContext, "https://idp1/metadata");
fail_unless(rc == 0, "lasso_login_build_authn_request_msg failed");
authnRequestUrl = LASSO_PROFILE(spLoginContext)->msg_url;
fail_unless(authnRequestUrl != NULL,