- Here's some sample code that can be thrown directly into your iPhone application's application:didFinishLaunchingWithOptions: method, in order to perform a basic connectivity test for your IrisCouch domain.
- You may refer to this post to get CouchCocoa into your iOS project.
- If you see error messages such as the following in your Xcode console then you are well on your way:
- As mentioned by in this thread, simply make the following changes to your IrisCouch domain:
- Go to http://mydomain.iriscouch.com/_utils/
- Log into your account
- Click “Configuration” in the sidebar
- Click “Add a new section” at the bottom
- Fill in
- section: httpd
- option: WWW-Authenticate
- value: Basic realm="administrator"
- It should work well now and after you spot the following logs, you can go confirm that a new database has actually been created on IrisCouch via your /_utils/ web console.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
REST: Authentication challenge! credential=<NSURLCredential: 0x857b040>: username
Tuesday, February 28, 2012
IrisCouch and CouchCocoa
Labels:
authentication,
authN,
CouchCocoa,
IrisCouch
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment