On Saturday, June 21, 2014 9:38:28 PM UTC-7, Joel Saltzman wrote:
>
> Ok, I will put something together then. Thanks
>
> On Jun 14, 2014, at 11:05 AM, Jens Alfke <[email protected]> wrote:
>
>
> On Jun 14, 2014, at 6:51 AM, Joel Saltzman <[email protected]> 
> 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.
>
>
There's an example that does this with the Linked In API for identity 
<https://github.com/couchbaselabs/StreamFavorites/blob/master/server.js#L89>. 
It's pretty simple to implement in any language, this was in Node.js.
 

>
> —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 
> [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/mobile-couchbase/DE6C4C0C-C777-48EA-B15B-391A33BABE01%40couchbase.com
>  
> <https://groups.google.com/d/msgid/mobile-couchbase/DE6C4C0C-C777-48EA-B15B-391A33BABE01%40couchbase.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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/b32219ab-a620-4f8d-aa03-3f48e9b7a7ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to