remove federation is now called from within lasso; why is this still part of

lasso API ?
This commit is contained in:
fpeters 2004-09-08 11:28:35 +00:00
parent e8dfdd5e1a
commit 0322fbdb90
2 changed files with 2 additions and 42 deletions

View File

@ -46,16 +46,9 @@ int defederation_http(LassoDefederation *termination)
return error_page("set_profile_auto failed");
}
identity = lasso_profile_get_identity(LASSO_PROFILE(termination));
if (identity == NULL) {
return error_page("get_itentity failed");
}
rc = lasso_identity_remove_federation(identity,
LASSO_PROFILE(termination)->remote_providerID);
lasso_identity_destroy(identity);
rc = lasso_defederation_build_notification_msg(termination);
if (rc) {
return error_page("remove_federation failed");
return error_page("build notification msg");
}
rc = save_profile_dumps(LASSO_PROFILE(termination));
@ -63,11 +56,6 @@ int defederation_http(LassoDefederation *termination)
return error_page("save_profile_dumps failed");
}
rc = lasso_defederation_build_notification_msg(termination);
if (rc) {
return error_page("build notification msg");
}
printf("Location: %s\n\nRedirected",
LASSO_PROFILE(termination)->msg_url);
@ -130,18 +118,6 @@ int defederation_init(LassoDefederation *termination,
return error_page("init_notification failed");
}
identity = lasso_profile_get_identity(LASSO_PROFILE(termination));
if (identity == NULL) {
return error_page("get_identity failed");
}
rc = lasso_identity_remove_federation(identity,
LASSO_PROFILE(termination)->remote_providerID);
lasso_identity_destroy(identity);
if (rc) {
return error_page("remove_federation failed");
}
rc = save_profile_dumps(LASSO_PROFILE(termination));
if (rc) {
return error_page("save_profile_dumps failed");

View File

@ -198,22 +198,6 @@ char* req_defederation(LassoServer *server, char *soap_msg)
return NULL;
}
identity = lasso_profile_get_identity(LASSO_PROFILE(termination));
if (identity == NULL) {
fprintf(stderr, "lasso_profile_get_identity failed\n");
lasso_defederation_destroy(termination);
return NULL;
}
rc = lasso_identity_remove_federation(identity,
LASSO_PROFILE(termination)->remote_providerID);
lasso_identity_destroy(identity);
if (rc) {
fprintf(stderr, "remove_federation failed\n");
lasso_defederation_destroy(termination);
return NULL;
}
rc = save_profile_dumps(LASSO_PROFILE(termination));
if (rc) {
lasso_defederation_destroy(termination);