saml-2.0: set NotOnOrAfter on the Conditions element (#5248)

This is actually required for interoperability with Dropbox SAML support.
This commit is contained in:
Frédéric Péters 2014-08-11 09:03:57 +02:00 committed by Benjamin Dauvergne
parent fd10b952a8
commit cad7b33c73
1 changed files with 1 additions and 0 deletions

View File

@ -744,6 +744,7 @@ 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);
audience_restriction = LASSO_SAML2_AUDIENCE_RESTRICTION(
lasso_saml2_audience_restriction_new());