EDIT:
In order to set up your accounts yourself, you must be able to base64 encode the username and password and set the appropriate header. Matt Gallagher, from Cocoa Lovingly, has a great post on how to add a category to NSData to make it easy.
NSString* username = @"username"; NSString* password = @"password"; NSString* encodedUsername = [[username dataUsingEncoding:NSUTF8StringEncoding] base64EncodedString]; NSString* encodedPassword = [[password dataUsingEncoding:NSUTF8StringEncoding] base64EncodedString]; NSURL* url = [NSURL URLWithString:@"http://yourUrl.com/"]; NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL:url]; NSString* headerValue = [NSString stringWithFormat:@"Basic %@:%@", encodedUsername, encodedPassowrd]; [request addValue:@"Authorization" forHTTPHeaderField:headerValue]; [NSURLConnection connectionWithRequest:request delegate:self];
As with credentials, make sure you do this all over HTTPS, because these credentials are essentially clear-text.
source share