diff options
author | Frederic Peters <fpeters@entrouvert.com> | 2006-10-29 13:26:27 +0000 |
---|---|---|
committer | Frederic Peters <fpeters@entrouvert.com> | 2006-10-29 13:26:27 +0000 |
commit | 50e640076146c780321a5b878fa356f74192e413 (patch) | |
tree | c8e69a28b547081e09c232e6119ad9ed48bc0583 | |
parent | 605749e04d7b719bef0c4101be7dec38e0108cc2 (diff) | |
download | lasso-50e640076146c780321a5b878fa356f74192e413.tar.gz lasso-50e640076146c780321a5b878fa356f74192e413.tar.xz lasso-50e640076146c780321a5b878fa356f74192e413.zip |
s/SAMLArt/SAMLart/ (+ check for remote provider)
-rw-r--r-- | lasso/saml-2.0/login.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lasso/saml-2.0/login.c b/lasso/saml-2.0/login.c index 487568ef..deae63b6 100644 --- a/lasso/saml-2.0/login.c +++ b/lasso/saml-2.0/login.c @@ -198,6 +198,10 @@ lasso_saml20_login_process_authn_request_msg(LassoLogin *login, const char *auth remote_provider = g_hash_table_lookup(profile->server->providers, profile->remote_providerID); + if (remote_provider == NULL) { + return critical_error( + LASSO_PROFILE_ERROR_MISSING_REMOTE_PROVIDERID); + } binding = lasso_saml20_provider_get_assertion_consumer_service_binding( remote_provider, service_index); @@ -498,7 +502,7 @@ lasso_saml20_login_build_artifact_msg(LassoLogin *login, LassoHttpMethod http_me artifact = lasso_saml20_profile_generate_artifact(profile, 1); login->assertionArtifact = g_strdup(artifact); if (http_method == LASSO_HTTP_METHOD_ARTIFACT_GET) { - profile->msg_url = g_strdup_printf("%s?SAMLArt=%s", url, artifact); + profile->msg_url = g_strdup_printf("%s?SAMLart=%s", url, artifact); /* XXX: RelayState */ } else { /* XXX: ARTIFACT POST */ |