summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-09-07 10:34:34 +0200
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-09-07 10:34:34 +0200
commitb1f6b7e0ed03cb57c349ace061c9e015b8b94bdb (patch)
tree95d1d750d37e196c59a99f2889698f580241ac22
parent08d61d5c959e999c2299cf314afe304b8647af0b (diff)
downloadlasso-b1f6b7e0ed03cb57c349ace061c9e015b8b94bdb.tar.gz
lasso-b1f6b7e0ed03cb57c349ace061c9e015b8b94bdb.tar.xz
lasso-b1f6b7e0ed03cb57c349ace061c9e015b8b94bdb.zip
[SAMLv2] when no artifact message is present, still return a success status
It is mandated by the specification.
-rw-r--r--configure.ac2
-rw-r--r--lasso/saml-2.0/profile.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 790ee011..3d80fa54 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,7 +15,7 @@ dnl - Second number is the number of supported API versions where API version >
dnl first number.
dnl - Third number is the current API version implementation version number.
dnl See libtool explanations about current, age and release, later in this file.
-AC_INIT([lasso], 2.3.0, lasso-devel@lists.labs.libre-entreprise.org)
+AC_INIT([lasso], 2.3.1, lasso-devel@lists.labs.libre-entreprise.org)
dnl Check if autoconf ver > 2.53
AC_PREREQ(2.53)
AC_CONFIG_MACRO_DIR([m4])
diff --git a/lasso/saml-2.0/profile.c b/lasso/saml-2.0/profile.c
index 98698762..083d05ac 100644
--- a/lasso/saml-2.0/profile.c
+++ b/lasso/saml-2.0/profile.c
@@ -416,6 +416,10 @@ lasso_saml20_profile_build_artifact_response(LassoProfile *profile)
LASSO_SAML2_STATUS_CODE_RESPONDER,
LASSO_PRIVATE_STATUS_CODE_FAILED_TO_RESTORE_ARTIFACT);
}
+ } else {
+ /* if no artifact is present, it is a success anyway */
+ lasso_saml20_profile_set_response_status(profile,
+ LASSO_SAML2_STATUS_CODE_SUCCESS, NULL);
}
/* Setup the signature */
lasso_check_good_rc(lasso_profile_saml20_setup_message_signature(profile,