SAML 2.0: in lasso_login_build_assertion set conditions time limit, no SubjectConfirmationData limits

This commit is contained in:
Benjamin Dauvergne 2010-05-31 07:13:41 +00:00
parent 60c6a25208
commit 9d22f29e55
1 changed files with 2 additions and 4 deletions

View File

@ -741,6 +741,8 @@ lasso_saml20_login_build_assertion(LassoLogin *login,
assertion->Issuer = LASSO_SAML2_NAME_ID(lasso_saml2_name_id_new_with_string(
LASSO_PROVIDER(profile->server)->ProviderID));
assertion->Conditions = LASSO_SAML2_CONDITIONS(lasso_saml2_conditions_new());
lasso_assign_string(assertion->Conditions->NotOnOrAfter, notOnOrAfter);
lasso_assign_string(assertion->Conditions->NotBefore, notBefore);
audience_restriction = LASSO_SAML2_AUDIENCE_RESTRICTION(
lasso_saml2_audience_restriction_new());
@ -755,10 +757,6 @@ lasso_saml20_login_build_assertion(LassoLogin *login,
assertion->Subject->SubjectConfirmation->SubjectConfirmationData =
LASSO_SAML2_SUBJECT_CONFIRMATION_DATA(
lasso_saml2_subject_confirmation_data_new());
assertion->Subject->SubjectConfirmation->SubjectConfirmationData->NotBefore = g_strdup(
notBefore);
assertion->Subject->SubjectConfirmation->SubjectConfirmationData->NotOnOrAfter = g_strdup(
notOnOrAfter);
/* If request is present, refer to it in the response */
if (authn_request) {