How to Authenticate?
I am using CouchDB for ios with the remote (iriscouch) host, which is password protected but my local host is not password protected,now my query is when a user enters the username and password on ios application, how will i know whether user has entered the valid username and password?
the problem i am facing is i am not able to show the app user for successful login(alert view) with proper message.
is there any delegate or method which can solve my problem.
You should ask this on the user@couchdb.org mailing list. It's not a mobile-specific question, and I'm not enough of an expert on replication to know the right answer. I believe an indication of the error will show up in the metadata that the server adds to the replication document (in the _replicator database). Filipe has been adding functionality to this lately and I'm not sure what the current status is.
Thank You for updating, jens. and please update me if u find the solution.
I would like to find out the solution as well. Thanks.
i am also facing the same problem,i am sending username and password for the remote using http://username:password@xyz.iriscouch.com. if the username and password is valid the replication will start automatically, if its not i am getting a log which tells unauthorised user.
=ERROR REPORT==== 14-Oct-2011::12:24:15 ===
** Generic server <0.173.0> terminating
** Last message in was {'EXIT',<0.172.0>,
{unauthorized,
<<"unauthorized to access or create database http://erg:*****@xyz.iriscouch.com/abc/">>}}
** When Server state == {state,"http://erg:gefb@xyz.iriscouch.com/abc/",
20,
[<0.174.0>],
[],
{[],[]}}
** Reason for termination ==
** {unauthorized,<<"unauthorized to access or create database http://erg:*****@xyz.iriscouch.com/abc/">>}
1>
i hav to show use this log in ma app. how to do this?