From 9bf43a8ea582d290d10ad5beba41aa511979770f Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 19 Oct 2015 13:48:40 -0400 Subject: [PATCH] Set NotBefore in SAML 2.0 login assertions License: MIT Signed-off-by: Rob Crittenden --- lasso/saml-2.0/login.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lasso/saml-2.0/login.c b/lasso/saml-2.0/login.c index 76c31310..3484adfa 100644 --- a/lasso/saml-2.0/login.c +++ b/lasso/saml-2.0/login.c @@ -747,7 +747,7 @@ int lasso_saml20_login_build_assertion(LassoLogin *login, const char *authenticationMethod, const char *authenticationInstant, - G_GNUC_UNUSED const char *notBefore, + const char *notBefore, const char *notOnOrAfter) { LassoProfile *profile = &login->parent; @@ -787,6 +787,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->NotBefore, notBefore); lasso_assign_string(assertion->Conditions->NotOnOrAfter, notOnOrAfter); audience_restriction = LASSO_SAML2_AUDIENCE_RESTRICTION(