Couchbase Questions: Couchbase Mobile

Have a Question? Get it answered by our community

Evengers's picture
Asked 2 days 7 hours ago

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

The tutorial here: http://docs.couchbase.com/couchbase-lite/cbl-phonegap/

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 3 days 10 hours ago

How to get name of logged in user from cookie

Hi

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 3 days 12 hours ago
Latest activity 2 days 16 hours 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 "bsg70@gmx.com"!

My sync function looks like this:

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

bmhardy's picture
Asked 4 days 13 hours ago
Latest activity 4 days 1 hour ago

How to get the session cookie after persona authentication

Hi,

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 4 days 16 hours ago
Latest activity 4 days 2 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) {
requireUser("importantUser@consultant.com");
}

This does indeed stop un authorized users from...

bmhardy's picture
Asked 4 days 19 hours ago
Latest activity 4 days 1 hour 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 6 days 12 hours ago
Latest activity 3 days 21 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 19 hours ago
Latest activity 4 days 1 hour ago

Couchbase Lite iOS Filter

Hi

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 4 days ago
Latest activity 1 week 2 days ago

Push replication stops working

Hello,

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 5 days ago
Latest activity 1 week 4 days 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...

Pages