Exemple #1
0
 function getTrustedParams($user, $retcode = null)
 {
     $token = WindowsLiveLogin::getTrustedToken($user);
     if (!$token) {
         return;
     }
     $token = "<wst:RequestSecurityTokenResponse xmlns:wst=\"http://schemas.xmlsoap.org/ws/2005/02/trust\"><wst:RequestedSecurityToken><wsse:BinarySecurityToken xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\">{$token}</wsse:BinarySecurityToken></wst:RequestedSecurityToken><wsp:AppliesTo xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2004/09/policy\"><wsa:EndpointReference xmlns:wsa=\"http://schemas.xmlsoap.org/ws/2004/08/addressing\"><wsa:Address>uri:WindowsLiveID</wsa:Address></wsa:EndpointReference></wsp:AppliesTo></wst:RequestSecurityTokenResponse>";
     $params = array();
     $params['wa'] = WindowsLiveLogin::getSecurityAlgorithm();
     $params['wresult'] = $token;
     if ($retcode) {
         $params['wctx'] = $retcode;
     }
     return $params;
 }