Ejemplo n.º 1
0
 function processConsent($query)
 {
     $action = @$query['action'];
     if ($action != 'delauth') {
         WindowsLiveLogin::debug("Warning: processConsent: query action ignored: {$action}");
         return;
     }
     $responsecode = @$query['ResponseCode'];
     if ($responsecode != 'RequestApproved') {
         WindowsLiveLogin::debug("Warning: processConsent: consent was not successfully granted: {$responsecode}");
         return;
     }
     $token = @$query['ConsentToken'];
     $context = urldecode(@$query['appctx']);
     return WindowsLiveLogin::processConsentToken($token, $context);
 }