[id-ff 1.2] provision the SessionIndex into the assertions

Without it SLO session management is broken.
This commit is contained in:
Benjamin Dauvergne 2011-12-22 18:19:29 +01:00
parent b016558d06
commit 26b341a276
1 changed files with 6 additions and 0 deletions

View File

@ -401,6 +401,12 @@ lasso_login_build_assertion(LassoLogin *login,
}
}
/* add session index */
if (lasso_provider_get_first_http_method(&login->parent.server->parent,
provider, LASSO_MD_PROTOCOL_TYPE_SINGLE_LOGOUT) != LASSO_HTTP_METHOD_NONE) {
lasso_assign_string(as->SessionIndex, assertion->AssertionID);
}
assertion->AuthenticationStatement = LASSO_SAML_AUTHENTICATION_STATEMENT(as);
/* Save signing material in assertion private datas to be able to sign later */