diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-09-07 10:34:34 +0200 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-09-07 10:34:34 +0200 |
commit | b1f6b7e0ed03cb57c349ace061c9e015b8b94bdb (patch) | |
tree | 95d1d750d37e196c59a99f2889698f580241ac22 /lasso | |
parent | 08d61d5c959e999c2299cf314afe304b8647af0b (diff) | |
download | lasso-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.
Diffstat (limited to 'lasso')
-rw-r--r-- | lasso/saml-2.0/profile.c | 4 |
1 files changed, 4 insertions, 0 deletions
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, |