Jens - the API docs were definitely helpful in me implementing this.
I may open source portions of my api server to help others once I can
catch my breath.
The short version is that I ended up having user records in the sync
gateway but then also a user object (accompanying views) in couchbase.
If the sync gateway was going to use the same user object in the
shadow db, that'd be one thing I suppose.
It just got odd to have my API pulling a record from couchbase then
trying to auth to the sync gateway, even if my infrastructure I was
sync'ing to wasn't on the same network as the gateway.
By moving to my user object being the authoritative information about
the user, then using the admin api to create a sync session, it just
seems to have cleaned that up.
I don't feel that I'm describing my situation properly at the moment.
Crunched for time a bit right now.
I'll know in a week or two if this change makes more sense as I
complete more pieces of my infrastructure.
-j
> --
> 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
mobile-couchba...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/mobile-couchbase/62BD5762-B0DE-4520-B33A-C9F9FD31AF5C%40couchbase.com.
--
The Christian ideal has not been tried and found wanting;
it has been found difficult and left untried – G. K. Chesterton