Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 75068 invoked from network); 14 Aug 2010 17:40:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Aug 2010 17:40:01 -0000 Received: (qmail 53832 invoked by uid 500); 14 Aug 2010 17:40:00 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 53745 invoked by uid 500); 14 Aug 2010 17:40:00 -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 53737 invoked by uid 99); 14 Aug 2010 17:39:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Aug 2010 17:39:59 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.56] (HELO qmta06.westchester.pa.mail.comcast.net) (76.96.62.56) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Aug 2010 17:39:52 +0000 Received: from omta21.westchester.pa.mail.comcast.net ([76.96.62.72]) by qmta06.westchester.pa.mail.comcast.net with comcast id uHT51e0051ZXKqc56HfYlV; Sat, 14 Aug 2010 17:39:32 +0000 Received: from orbital ([65.96.149.178]) by omta21.westchester.pa.mail.comcast.net with comcast id uHfX1e00G3rAzRt3hHfX9d; Sat, 14 Aug 2010 17:39:32 +0000 Received: by orbital (Postfix, from userid 1000) id 1AA5661DF0; Sat, 14 Aug 2010 13:39:30 -0400 (EDT) Date: Sat, 14 Aug 2010 13:39:30 -0400 From: Sam Bisbee To: user@couchdb.apache.org Subject: Re: confused about authentication in php vs couchdb Message-ID: <20100814173930.GB6601@orbital> References: <8CD0974DDF02840-2078-5FD9@webmail-d071.sysops.aol.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8CD0974DDF02840-2078-5FD9@webmail-d071.sysops.aol.com> User-Agent: Mutt/1.5.20 (2009-06-14) On Fri, Aug 13, 2010 at 11:06:47PM -0400, whimsica@aol.com wrote: > How do you do the sort of authentication that happens in php mysql with couchdb? As you can see from Chris's reply, there is a lot of things that you can do with auth and couchdb. The most basic set up is creating accounts and using HTTP Basic authentication. > I sort of understand how php authentication works sort of...you can > dynamically write pages depending on the credentials of a user. The > credentials are checked against the mysql database and then stored in php > somehow What are you using MySQL for in your environment? > Using HTTP apache authentication I can hide certain webpages from certain > users unless their credentials are sent each time using some mechanism. I > understand how to do this in php. You can do this same thing in your Apache config, your CouchDB config, your PHP code, or all three if you're crazy enough. I think it would be helpful if you gave us an idea of what you're building and your application's environment, so that we can give you more targeted guidance. Cheers, -- Sam Bisbee www.sbisbee.com