Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4A3E94335 for ; Fri, 27 May 2011 22:16:01 +0000 (UTC) Received: (qmail 19131 invoked by uid 500); 27 May 2011 22:15:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 19087 invoked by uid 500); 27 May 2011 22:15:59 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 19078 invoked by uid 99); 27 May 2011 22:15:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2011 22:15:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of andrew.stuart@supercoders.com.au designates 174.122.63.52 as permitted sender) Received: from [174.122.63.52] (HELO gallium.mailguard.com.au) (174.122.63.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2011 22:15:53 +0000 Received: from gallium.mailguard.com.au (localhost [127.0.0.1]) by gallium.mailguard.com.au (Postfix) with ESMTP id 66794B3892 for ; Sat, 28 May 2011 08:15:31 +1000 (EST) Received: from public001.crowdwave.com (ec2-174-129-235-19.compute-1.amazonaws.com [174.129.235.19]) by gallium.mailguard.com.au (Postfix) with ESMTPA id B6F85B2B2F for ; Sat, 28 May 2011 08:15:28 +1000 (EST) Received: from public001.crowdwave.com (public001.crowdwave.com [127.0.0.1]) by public001.crowdwave.com (Postfix) with ESMTP id CAEB67A17E for ; Sat, 28 May 2011 08:15:27 +1000 (EST) Received: from public001.crowdwave.com (public001.crowdwave.com [127.0.0.1]) by mx-int.flatraterecruitment.com.au (Postfix) with ESMTP id 5F7FA7A331 for ; Sat, 28 May 2011 08:15:27 +1000 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on public001.crowdwave.com X-Spam-Level: Received: from [192.168.1.104] (dsl-202-45-109-118-static.VIC.netspace.net.au [202.45.109.118]) by public001.crowdwave.com (Postfix) with ESMTPSA id 634FE7A17E for ; Sat, 28 May 2011 08:15:26 +1000 (EST) Message-Id: From: "Andrew Stuart (SuperCoders)" To: user@couchdb.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Any existing code/samples/examples for couchdb self service? Date: Sat, 28 May 2011 08:15:22 +1000 References: <9AEAF9E4-D06A-42BB-A1F9-6F72D0C24707@supercoders.com.au> <5C33BC1E-E937-4DBC-B504-A51868F0A93F@supercoders.com.au> X-Mailer: Apple Mail (2.936) X-Virus-Scanned: ClamAV using ClamSMTP X-MailGuard-UID: 4de0228034ff185b X-MailGuard-ID: 4de02281601fc1 X-Filtered: by MailGuard - visit http://www.mailguard.com.au X-Old-Spam-Status: No, score=-1.3 required=5.0 tests=ALL_TRUSTED,AWL autolearn=ham version=3.2.5 Nice one thanks Martin thats excellent. Benoit I'd be interested to see your solution too. Andrew On 28/05/2011, at 1:54 AM, Martin Higham wrote: Sorry for the delay. I had to make sure it worked once I'd ripped out our project specific code https://github.com/ocasta/CouchDB-Selfservice Martin On 27 May 2011 00:13, Andrew Stuart (SuperCoders) < andrew.stuart@supercoders.com.au> wrote: > Hi Martin > > Following up on this - any chance the code or some portion of it > might be > accessible so we can see how you solved it? > > thanks > > > as > > > On 08/05/2011, at 6:10 AM, Martin Higham wrote: > > We do this in one of apps. We have an CouchDB external process that > makes > all the necessary calls to create the database (by replicating a > template > database), creating the user account and then setting security > roles. I'll > see what I can do to make the code publicly available. > > Martin > > On 7 May 2011, at 14:31, Ajai Khattri wrote: > > Im working on a similar app. I imagine you could write a web service > that >> your app connects to, that creates the database on your db server. >> On May 7, 2011 1:48 AM, "Andrew Stuart (SuperCoders)" < >> andrew.stuart@supercoders.com.au> wrote: >> >>> Hi, >>> >>> The app I am designing needs to create an individual new database >>> for >>> each new user that signs up. That user is the only user allowed >>> access to their database. Very similar to the way an email service >>> would work - sign up, confirmation email is sent out and you then >>> get >>> your own email database. >>> >>> Does anyone know of any existing examples/samples/open source apps >>> that show a good approach for doing this? >>> >>> thanks >>> >>> Andrew >>> >> -- > Message protected by MailGuard: e-mail anti-virus, anti-spam and > content > filtering.http://www.mailguard.com.au/mg > Click here to report this message as spam: > https://login.mailguard.com.au/report/1Cg9uAs76L/bDnhgzU5sy9gauLTAILlo/1 >