views:

14

answers:

0

I'm using ASIHttpRequest API to communicate with my WCF services. The WCF services are set up as webHttpBinding so I can communicate in basic JSON without SOAP.

This is the code I'm using to talk with the service and pass along user credentials:

NSURL *url = [NSURL URLWithString:@"http://allseeing-i.com/top_secret/"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setUsername:@"username"];
[request setPassword:@"password"];

I'm using a membership provider on the server side to authenticate my users. Is it possible to authenticate each request using the username and password sent in the above code?

Please help I've been searching for a solution for a while.

related questions