copyFromBase('logininfocard', 'config-login-infocard.php'); $ICconfig['tokenserviceurl'] = $autoconfig->getValue('tokenserviceurl'); $ICconfig['certificates'] = $autoconfig->getValue('certificates'); $ICconfig['UserCredential'] = $autoconfig->getValue('UserCredential'); // Grab the important parts of the token request. That's pretty much just // the request ID. $request_id = ''; if ($use_soap && strlen($HTTP_RAW_POST_DATA)) { $token = new DOMDocument(); $token->loadXML($HTTP_RAW_POST_DATA); $doc = $token->documentElement; $elements = $doc->getElementsByTagname('MessageID'); $request_id = $elements->item(0)->nodeValue; } $buf = ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= 'http://schemas.xmlsoap.org/ws/2004/09/transfer/GetResponse'; $buf .= ''; $buf .= ''; $buf .= $request_id; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; // Authentication token assertion switch($ICconfig['UserCredential']){ case "UsernamePasswordCredential": $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; break; case "KerberosV5Credential": $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; break; case "X509V3Credential": $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; break; case "SelfIssuedCredential": $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= 'http://schemas.xmlsoap.org/ws/2005/05/identity/issuer/self'; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= 'urn:oasis:names:tc:SAML:1.0:assertion'; $buf .= ''; $buf .= ''; $buf .= 'http://schemas.xmlsoap.org/ws/2005/02/trust/PublicKey'; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; break; default: break; } $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''.$ICconfig['tokenserviceurl'].''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= sspmod_InfoCard_Utils::takeCert($ICconfig['certificates'][0]); $buf .=''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; $buf .= ''; print($buf); ?>