summaryrefslogtreecommitdiffstats
path: root/lasso/id-ff
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-08-09 15:48:18 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-08-09 15:48:18 +0000
commit62a39dc3bf452df9334a7db397bebe56e8a49c63 (patch)
tree8e8bca38b3057c0cfec11800c523edb4deafa230 /lasso/id-ff
parentd4d3338c02799b415e83622747237ce53737bd3d (diff)
downloadlasso-62a39dc3bf452df9334a7db397bebe56e8a49c63.tar.gz
lasso-62a39dc3bf452df9334a7db397bebe56e8a49c63.tar.xz
lasso-62a39dc3bf452df9334a7db397bebe56e8a49c63.zip
Fixed a bug in lasso_lecp_build_authn_request_msg()
Diffstat (limited to 'lasso/id-ff')
-rw-r--r--lasso/id-ff/lecp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lasso/id-ff/lecp.c b/lasso/id-ff/lecp.c
index 1f47dda7..2451f756 100644
--- a/lasso/id-ff/lecp.c
+++ b/lasso/id-ff/lecp.c
@@ -76,12 +76,17 @@ lasso_lecp_build_authn_request_msg(LassoLecp *lecp,
const gchar *remote_providerID)
{
LassoProfile *profile;
+ LassoProvider *remote_provider;
g_return_val_if_fail(LASSO_IS_LECP(lecp), -1);
profile = LASSO_PROFILE(lecp);
-
- profile->msg_url = NULL; /* FIXME use remote_providerID to get url */
+
+ LASSO_PROFILE(lecp)->remote_providerID = g_strdup(remote_providerID);
+ remote_provider = lasso_server_get_provider_ref(LASSO_PROFILE(lecp)->server,
+ LASSO_PROFILE(lecp)->remote_providerID);
+
+ profile->msg_url = lasso_provider_get_singleSignOnServiceURL(remote_provider, NULL);
profile->msg_body = lasso_node_export_to_soap(profile->request);
if (profile->msg_body == NULL) {
message(G_LOG_LEVEL_CRITICAL, "Error while building the AuthnRequest SOAP message\n");