On Friday, 5 December 2014 22:53:30 UTC+5:30, Jens Alfke wrote:
>
> The logs show some requests being made on the admin port — see "(ADMIN)"
> in the logs. That implies you have a client using the admin port, which is
> generally a bad idea.
> (Please don't post logs as screenshots. Besides the wasted bandwidth it
> also makes it impossible to copy and paste text from them. IIRC the Windows
> DOS app is still brain-dead about copy/paste but there are good alternative
> terminal apps.)
>
Those ADMIN port requests are being made by me only. I had just kept a
client open in order to check if the channels assignment to docs was as it
should be. I wasn't modifying anything using admin interface. And yes i
will be switching to some other console app for windows rather then
copy/pasting screenshots.
>
> >
> {"target":"budgetappdb","headers":{"Cookie":"SyncGatewaySession=238aa5d0b66d9588559756eb91c5427509a8c69a"},"source":{"url":"
> http://192.168.1.14:4984/budgetappdb","auth":{"name":"vinay"}},"continuous":true}
>
>
>
> CBL doesn't support a "name" sub-property of "auth", so your
> authentication is being ignored and it's connecting as guest, as Traun
> said. (Again, you can see this in the Gateway logs because the iOS requests
> don't say "(as vinay)" at the end.)
> (Looking through the CouchDB docs, it doesn't seem to support "name" auth
> either. Where did you get this from? I'm wondering if there are incorrect
> docs somewhere, or if this is actually a supported CouchDB property that I
> just haven't found documentation for.)
>
>
Ok that was error on my part..i found it somewhere in a demo app code for
phonegap but now i can't trace the source for it. Nevertheless i removed
the "name" property along with the "auth" property and build my app again.
Issue persists :( . Below is my current flow as it happens.
-Install app to android
-signup with username-vinay,pass-vinay
-session created on SG
--i can see my _replicate calls with session cookie set in header and SG
accepts my user login
-switch to iOS
-login with same credentials
- a new session for same user created on SG
--i can see my _replicate calls with session cookie set in header and SG
accepts my user login
--enter a new document in iOS app
-new document is replicated in ANDROID
-similarly enter a new document in android IT IS NOT REPLICATED IN iOS even
though i am currently logged in
-restart iOS app and now CBLite does not send my cookie...login fails
entirely on SG thereafter all the times.
> Instead, put the username in the URL, i.e.
> "source": "http://[email protected]:4984/budgetappdb"
> you may also need the password if it's not already in the application's
> keychain:
> "source": "http://vinay:[email protected]:4984/budgetappdb"
>
> —Jens
I have a doubt here..guide me if i am doing something stupid but do i need
to pass username and password as u wrote above when i am authenticating by
sending session cookie ?
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/7120f74b-2c61-410d-adef-199fe5d3826c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.