Skip to content

HTTP Authentication Support on RestKit

spiderr edited this page Jan 17, 2012 · 5 revisions

HTTP Authentication is the simplest method to implement, especially if you are creating your own REST service. RestKit supports HTTP AUTH digest and other flavors supported by NSURLConnection. For other authentication standards, see OAuth Support on RestKit.

Usage

[RKClient clientWithBaseURL:@"http://example.com/api/" username:@"bob" password:@"s3cr3t"];

Troubleshooting

  • Make sure you have the Auth Digest module installed in your webserver. This is often not installed on hosted servers. For Apache, you can test this with 'httpd -M' on the command line, and look for 'auth_digest_module'