Couchbase Questions: Couchbase Mobile

Have a Question? Get it answered by our community

bmhardy's picture
Asked 7 hours 51 min 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 9 hours 21 min ago

requireUser not working for me.

I authenticate using persona.

I see this in the sync gateway logs

03:51:40.615322 Persona: Logged in ""!

My sync function looks like this:

"sync": `function(doc, oldDoc) {
if (oldDoc) {...

bmhardy's picture
Asked 1 day 10 hours ago
Latest activity 22 hours 46 min 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 day 13 hours ago
Latest activity 22 hours 55 min 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 day 16 hours ago
Latest activity 22 hours 42 min 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 3 days 9 hours ago
Latest activity 18 hours 24 min 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 4 days 16 hours ago
Latest activity 22 hours 17 min 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 1 week 1 day ago
Latest activity 6 days 2 hours 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 1 week 2 days ago
Latest activity 1 week 1 day 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...

kanundrum's picture
Asked 1 week 3 days ago

How to get Android CBLite client to store session cookie

I setup my own authentication endpoint as per the directions here . It doesn't seem like getting the cookie using a DefaultHttpClient sets...