From dcc216b9a4d68b0aeffa2703e55e9a04351dedba Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Mon, 13 Jul 2009 07:22:55 +0000 Subject: [PATCH] SAML20/AuthnResponse: Send correct response code for errors. A small bug with the previously committed code, which could result in a response being sent with a status code of success when it was actually an error. The error was in the code which was included for backwards- compatibility. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1583 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/XML/SAML20/AuthnResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SimpleSAML/XML/SAML20/AuthnResponse.php b/lib/SimpleSAML/XML/SAML20/AuthnResponse.php index 5e4193379..32ee3aa77 100644 --- a/lib/SimpleSAML/XML/SAML20/AuthnResponse.php +++ b/lib/SimpleSAML/XML/SAML20/AuthnResponse.php @@ -679,7 +679,7 @@ class SimpleSAML_XML_SAML20_AuthnResponse extends SimpleSAML_XML_AuthnResponse { $status = new sspmod_saml2_Error(sspmod_saml2_Const::STATUS_SUCCESS); } else { $status = new sspmod_saml2_Error( - sspmod_saml2_Const::STATUS_SUCCESS, + sspmod_saml2_Const::STATUS_RESPONDER, 'urn:oasis:names:tc:SAML:2.0:status:' . $status ); } -- GitLab