If you look at the Admin REST API endpoints 
in http://docs.couchbase.com/sync-gateway/#admin-rest-api, you can see that 
there are calls to /$DB/_user/ (as POST) to create a user and 
/$DB/_user/$name as PUT to update the users. The parameters to the user are 
provided at http://docs.couchbase.com/sync-gateway/#authorizing-users under 
the "Accounts" section.  

On Saturday, June 14, 2014 11:16:11 AM UTC+5:30, Joel Saltzman wrote:
>
> I went through the demo for the couchchat and I found that it requires a 
> Persona login/signup and once verified the sync_gateway creates the _user. 
> Is there a way to create a _user via the sync function or something 
> similar? I was hoping to get around making a separate script server side to 
> create users.
>
> On Monday, May 19, 2014 10:25:36 AM UTC-7, J. Chris Anderson wrote:
>>
>>
>>
>> On Monday, May 19, 2014 9:07:52 AM UTC-7, Joel Saltzman wrote:
>>>
>>> I'm looking to allow users to create their own accounts and have private 
>>> access to only their content in the database. e.g. I don't want user A to 
>>> sync any of user B's info. The easiest example I can think of is github 
>>> users and repos. I understand that I should add to _users and create 
>>> channels for each user.
>>>
>>> Is there a way to do this through couchbase lite or do I have to create 
>>> a separate script server side (like in php or something) to modify the 
>>> _users info?
>>>
>>
>> The sync function API allows you to have documents which make those sort 
>> of changes dynamically. 
>>
>> Here are the docs, we are working on more tutorials: 
>> http://docs.couchbase.com/sync-gateway/#sync-gateway-apis
>>
>> Chris 
>>
>

-- 
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-couchbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/4a767b53-c66a-4386-a23d-27c56b3b6533%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to