diff options
author | Olav Morken <olav.morken@uninett.no> | 2010-05-19 13:04:33 +0000 |
---|---|---|
committer | Olav Morken <olav.morken@uninett.no> | 2010-05-19 13:04:33 +0000 |
commit | 8137646884112dc6c0201f33462f7462f2883478 (patch) | |
tree | 1e8d4a22e090042832d6d1a2ed8672403fbeb7a3 /lib/SAML2/ArtifactResolve.php | |
parent | f90955eacf9685ce8658cfbe5e28f9223ff7b1af (diff) | |
download | simplesamlphp-8137646884112dc6c0201f33462f7462f2883478.zip simplesamlphp-8137646884112dc6c0201f33462f7462f2883478.tar.gz simplesamlphp-8137646884112dc6c0201f33462f7462f2883478.tar.bz2 |
Artifact support for the SP.
This patch adds the necessary code for receiving authentication
responses using the HTTP-Artifact binding.
Thanks to Shoaib Ali and Bill Young from New Zealand for spending the
time to implement this.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2305 44740490-163a-0410-bde0-09ae8108e29a
Diffstat (limited to 'lib/SAML2/ArtifactResolve.php')
-rw-r--r-- | lib/SAML2/ArtifactResolve.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/SAML2/ArtifactResolve.php b/lib/SAML2/ArtifactResolve.php index c7de093..b0e1006 100644 --- a/lib/SAML2/ArtifactResolve.php +++ b/lib/SAML2/ArtifactResolve.php @@ -42,7 +42,7 @@ class SAML2_ArtifactResolve extends SAML2_Request { * @param String The $artifact. */ public function setArtifact($artifact) { - + assert('is_string($artifact)'); $this->artifact = $artifact; } @@ -53,7 +53,10 @@ class SAML2_ArtifactResolve extends SAML2_Request { */ public function toUnsignedXML() { - throw new Exception('Not SUPPORTED'); + $root = parent::toUnsignedXML(); + $artifactelement = $this->document->createElementNS(SAML2_Const::NS_SAMLP, 'Artifact', $this->artifact); + $root->appendChild($artifactelement); + return $root; } |