Return-Path: Delivered-To: apmail-modperl-archive@apache.org Received: (qmail 29070 invoked by uid 500); 1 Oct 2002 13:29:10 -0000 Mailing-List: contact modperl-help@apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 29048 invoked from network); 1 Oct 2002 13:29:10 -0000 Message-ID: <3D99A31B.1010104@modperlcookbook.org> Date: Tue, 01 Oct 2002 09:28:59 -0400 From: Geoffrey Young User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Martin Moss CC: modperl Subject: Re: Daft question - preventing the username password box from appearing. References: <004701c2694c$cbe10d30$0200a8c0@yellowg70rvsow> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Martin Moss wrote: > All, > > How do I change the behaviour of get_basic_auth_passwd() > > I do not wish to have the prompt box appear, I want to have a dynamically > produced login form which when submitted carries out the users previous > command (I have an authentication system which 'times out' a user) > > the problem I have is that this doesn't work:- > > my $response=&timedout($r); #returns a string of html to display > $r->custom_response(AUTH_REQUIRED,$response); > return AUTH_REQUIRED; > > > The problem is this still prompts the user for his username and password, > and only displays the html is the user presses cancel. > How do I ditch the login box completely? use FORBIDDEN instead of AUTH_REQUIRED. see recipe 13.7 in the Cookbook, or Apache::AuthCookie for examples of how this is done (hint, it requires a bit of fancy footwork :) HTH --Geoff