Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 68012 invoked from network); 21 Jul 2009 10:54:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jul 2009 10:54:06 -0000 Received: (qmail 95907 invoked by uid 500); 21 Jul 2009 10:55:11 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 95850 invoked by uid 500); 21 Jul 2009 10:55:11 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 95840 invoked by uid 99); 21 Jul 2009 10:55:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2009 10:55:11 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.177.193.141] (HELO globalgold.co.uk) (195.177.193.141) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2009 10:55:02 +0000 Received: (qmail 9656 invoked from network); 21 Jul 2009 11:54:39 +0100 Received: from host81-136-182-93.in-addr.btopenworld.com (HELO boobarella) (81.136.182.93) by www.stickyeyes.com with SMTP; 21 Jul 2009 11:54:39 +0100 From: "Ben Davies" To: Subject: Dynamicly insert 'require' into request Date: Tue, 21 Jul 2009 11:52:36 +0100 Message-ID: <002d01ca09f1$5bdf9c70$139ed550$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002E_01CA09F9.BDA40470" X-Mailer: Microsoft Office Outlook 12.0 thread-index: AcoJ8VuPKIRfl8m2Qc6lrxputHd/VQ== Content-Language: en-gb X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_002E_01CA09F9.BDA40470 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Everybody, Quick question: does anyone have any examples of implementing conditional authentication in a module? I'd like my module to serve a file if public access is granted, and challenge if not. I thought that it might be possible to dynamically insert a require statement into a request config in order to trigger the check_user and auth hooks. Any suggestions or examples? Or is Apache locked into the "only the require directive triggers auth and you can't dynamically change the config of a request during that request"? Cheers, Ben ------=_NextPart_000_002E_01CA09F9.BDA40470--