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?
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/akDzslUzgaE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchba...@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.
Yes, but the admin port should not be exposed. I am looking to give users a way to create their own accounts without Persona or Facebook, exposing the admin port or making a separate script. I’m guessing It can’t be done...
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/akDzslUzgaE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/DE6C4C0C-C777-48EA-B15B-391A33BABE01%40couchbase.com.
Ok, I will put something together then. ThanksOn Jun 14, 2014, at 11:05 AM, Jens Alfke <je...@couchbase.com> wrote:On Jun 14, 2014, at 6:51 AM, Joel Saltzman <saltzm...@gmail.com> wrote:Yes, but the admin port should not be exposed. I am looking to give users a way to create their own accounts without Persona or Facebook, exposing the admin port or making a separate script. I’m guessing It can’t be done...The Gateway doesn’t support self-registration of user accounts. That would be a good feature to add in a future release. I don’t think anyone’s requested it before, so you can file an issue on Github.It would be easy to write a server-side script that does this — probably a few dozen lines of your favorite scripting language. You just need to accept a POST from the client, then turn around and PUT /db/username on the Gateway’s admin port. You’d probably then want to add features like letting the user change their password or delete their account. It shouldn’t take more than a day or two to put something like this together. If anyone does so and would like to contribute the script, I’d gratefully add it to the Gateway repository or wiki.
—Jens--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/akDzslUzgaE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchbase+unsubscribe@googlegroups.com.