Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Mobile

How to Authenticate?

4 replies [Last post]
  • Login or register to post comments
Fri, 10/14/2011 - 01:02
krishanbhag
Offline
Joined: 10/14/2011
Groups: None

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.

Top
  • Login or register to post comments
Fri, 10/14/2011 - 01:12
sanjaya
Offline
Joined: 10/14/2011
Groups: None

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?

Top
  • Login or register to post comments
Fri, 10/14/2011 - 08:54
jens
Offline
Joined: 10/04/2011
Groups: None

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.

Top
  • Login or register to post comments
Mon, 10/17/2011 - 04:17
krishanbhag
Offline
Joined: 10/14/2011
Groups: None

Thank You for updating, jens. and please update me if u find the solution.

Top
  • Login or register to post comments
Wed, 03/07/2012 - 06:04
DaisySibyl
Offline
Joined: 02/08/2012
Groups: None

I would like to find out the solution as well. Thanks.

__________________

http://www.w-weddinginvitations.com/buy-wedding-invitations-online/

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker