diff options
author | Olav Morken <olav.morken@uninett.no> | 2009-08-03 12:44:26 +0000 |
---|---|---|
committer | Olav Morken <olav.morken@uninett.no> | 2009-08-03 12:44:26 +0000 |
commit | f389bb73ef15d219c1af6b0f94e433878e8dafd9 (patch) | |
tree | 5d5a6851b68595b32e42cca21ad3725f97555a17 /lib/SimpleSAML/XML/SAML20/AuthnResponse.php | |
parent | 62114cd6688fb011f738c3541c76766e0de9d580 (diff) | |
download | simplesamlphp-f389bb73ef15d219c1af6b0f94e433878e8dafd9.zip simplesamlphp-f389bb73ef15d219c1af6b0f94e433878e8dafd9.tar.gz simplesamlphp-f389bb73ef15d219c1af6b0f94e433878e8dafd9.tar.bz2 |
SAML2: Move constants from sspmod_saml2_Const to SAML2_Const.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1597 44740490-163a-0410-bde0-09ae8108e29a
Diffstat (limited to 'lib/SimpleSAML/XML/SAML20/AuthnResponse.php')
-rw-r--r-- | lib/SimpleSAML/XML/SAML20/AuthnResponse.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/SimpleSAML/XML/SAML20/AuthnResponse.php b/lib/SimpleSAML/XML/SAML20/AuthnResponse.php index 32ee3aa..0c38b82 100644 --- a/lib/SimpleSAML/XML/SAML20/AuthnResponse.php +++ b/lib/SimpleSAML/XML/SAML20/AuthnResponse.php @@ -676,10 +676,10 @@ class SimpleSAML_XML_SAML20_AuthnResponse extends SimpleSAML_XML_AuthnResponse { if (is_string($status)) { if ($status === 'Success') { /* Not really an error, but it makes the code simpler. */ - $status = new sspmod_saml2_Error(sspmod_saml2_Const::STATUS_SUCCESS); + $status = new sspmod_saml2_Error(SAML2_Const::STATUS_SUCCESS); } else { $status = new sspmod_saml2_Error( - sspmod_saml2_Const::STATUS_RESPONDER, + SAML2_Const::STATUS_RESPONDER, 'urn:oasis:names:tc:SAML:2.0:status:' . $status ); } @@ -763,7 +763,7 @@ class SimpleSAML_XML_SAML20_AuthnResponse extends SimpleSAML_XML_AuthnResponse { if (!empty($inresponseto)) $inresponsetoText = 'InResponseTo="' . htmlspecialchars($inresponseto). '" '; $assertion = ""; - if ($status->getStatus() === sspmod_saml2_Const::STATUS_SUCCESS) { + if ($status->getStatus() === SAML2_Const::STATUS_SUCCESS) { $assertion = '<saml:Assertion Version="2.0" ID="' . $assertionid . '" IssueInstant="' . $issueInstant . '"> <saml:Issuer>' . htmlspecialchars($issuer) . '</saml:Issuer> |