Couchbase Questions: Couchbase Mobile

Have a Question? Get it answered by our community

Evengers's picture
Asked 5 days 3 hours ago

Wrong version of ios-sim? (In case others are having tutorial problem)

The tutorial here:

Says "you have the latest released version of each tool."

I and others got it running with iOS-sim 1.8 but not the latest 1.9.


bmhardy's picture
Asked 6 days 6 hours ago

How to get name of logged in user from cookie


I authenticated with persona using the _persona endpoint. I was able to retrieve the cookie sent back on the call. It had a named entry syncGatewaySession and an alpha numerical value. Can I get the name of the logged in user from that cookie.

Could I access that cookie after...

bmhardy's picture
Asked 6 days 8 hours ago

requireUser not working for me.

I authenticate using persona and I see a message in the sync gateway logs that confirms I’m authenticated as user

When my sync function reads like this (with requireUser commented out):
"sync": `function(doc, oldDoc) {...

bmhardy's picture
Asked 1 week 9 hours ago
Latest activity 6 days 21 hours ago

How to get the session cookie after persona authentication


I read this about using persona with couchbase:

Clients log in by sending a POST request to /dbname/_persona. The request body is a JSON document that contains an assertion property whose value is the signed assertion received from the identity provider. Just as with a _session...

bmhardy's picture
Asked 1 week 12 hours ago
Latest activity 6 days 21 hours ago

Wrong user exception not thrown in client code.

I'm using authorization in my couchbase config.

In my config.json, my sync function says this:

if (oldDoc) {

This does indeed stop un authorized users from...

bmhardy's picture
Asked 1 week 15 hours ago
Latest activity 6 days 21 hours ago

Trouble with authorization in sync function

I'm having some trouble adding some authorization into our couchbase mobile app. Can you offer any help or insight?

I'm running this on an amazon ec2 instance so the couchbase version may be a little older than current.

I'm using persona to authenticate. I successfully...

AnupVeerapur's picture
Asked 1 week 2 days ago
Latest activity 2 days 6 hours ago

Phonegap TodoLite Project creation error.

Hi, I am trying to create the TodoLite example project. I am always getting the error "Couchbase Lite not installed" and the porject does not seem to work later.

Please suggest what would have gone wrong.
I have followed all the steps as per the "...

lenniedg2000's picture
Asked 1 week 3 days ago
Latest activity 6 days 21 hours ago

Couchbase Lite iOS Filter


I have some documents in my local Couchbase database that each have a channel set like "25".
On iOS in Objective C I then try to have a filter to ONLY pull the data for that channel down... My goal is to assign a channel ID to each user that signup in the application so that i...

opic's picture
Asked 2 weeks 18 hours ago
Latest activity 1 week 5 days ago

Push replication stops working


We have a CBlite Beta Plugin for Android Phonegap project running ok and replicating in pull and push mode in continuous mode. When a modification is made on the mobile database it is correctly pushed on the server.

Surprisingly, when the app is stopped and when we restart...

bmhardy's picture
Asked 2 weeks 1 day ago
Latest activity 2 weeks 18 hours ago

Persona and couchbase

I was thinking of using persona authentication with my android application.

Can someone please enlighten me about what couchbase does with persona? Does the server run some code that responds to a persona request? Does authentication happen at a...