Simon Tam


Can someone post an example of some code which sets the header for how to utilize the filters I can't make sense of what the docs are asking me to do.

Setting it as an http header doesn't seem to work.

Mind you I'm using PHP for my testing and here's the code:

$url = "https://cumulus.services.live.com/" . $ownerhandle . "/LiveContacts";
$header = array("Authorization: DomainAuthToken at=\"" . $authtoken . "\"",
"com.microsoft.external.contacts.Filter=MessengerClient");

$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);

Am I doing this wrong in trying to put the filter in the HTTP header I sniffed the HTTP packets and the filter isn't even in the header (my guess is PHP/Curl doesn't like the format or what I'm trying to do)



Re: How does one actually use the filters?

Bill Zissimopoulos (MSFT)


Hi, Simon:

The "filter" feature was unfortunately cut down at the last moment before Alpha release. We intend to reintroduce it in our next release.

If you are sniffing HTTP packets and finding that the header is not being sent, it could very well be that the curl library refuses to send this header. Unfortunately I am not familiar with the library and cannot help you with that.

Bill






Re: How does one actually use the filters?

Dawei@MSFT

com.microsoft.external.contacts.Filter header is removed for security reason. Please try put filter in query string. e.g. Filter=MessengerClient




Re: How does one actually use the filters?

Oleg G. Sharov

How you get $authtoken

I'm using PHP too, and can't understand where get authtoken.





Re: How does one actually use the filters?

SergeiGolubev

Oleg, have a look at this article here: http://www.vsj.co.uk/articles/display.asp id=654. All in all there are three methods of authentication: Domain Authentication, Mutual SSL Authentication and RPS (Relying Party Suite) Authentication. First one is not working at the moment, as the service, which is in alpha version, is "temporarily unavailable", second requires special SSL certificate. I have successfully retrieved the auth.token using RPS method, which involves SOAP.





Re: How does one actually use the filters?

Federico Raggi - MSFT

Just a small clarification: Mutual SSL authentication is the authentication mechanism not supported on the Alpha. Domain Authentication is available and working well in the Alpha.






Re: How does one actually use the filters?

covertunes

Sergei,

Were you using PHP to get the RPS If so how did you setup your SOAP call