You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Giorgio Ponza <gi...@opla.it> on 2005/01/24 14:21:19 UTC

BASIC Authentication

Hi all
I have a small problem trying to configure BASIC auth.
Everything works good, but i'd like to know if i can change the default page when the user is not 
authenticated. I try to eplain better: if i write wrong 3 times the password, or i click on "cancel" 
button, a default Tomcat page appears saying

type Status report
message
description This request requires HTTP authentication ().

Is possible to change this default page?
Tx everybody

Giorgio

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: BASIC Authentication

Posted by Giorgio Ponza <gi...@opla.it>.
Ashish Kulkarni ha scritto:
> Hi
> May be try putting the following in web.xml file just
> before taglib ( i am not sure but works with 2.2)
> 	<error-page>
> 		<error-code>403</error-code>
> 
> 		<location>/pages/error/noaccess.jsp</location>
> 	</error-page>
> 
> 	<error-page>
> 		<error-code>401</error-code>
> 
> 		<location>/pages/error/noaccess.jsp</location>
> 	</error-page>
> 
> Ashish

Thanks for the answer, but this method doesnt work.
Infact if a resourse is under authentication (like manager) and i setup a 401 page error,
the system does not ask for user and password but presents immediately the error page.
I think i have to use something other than basic auth, at least to create my own login page :D

Tx all

Giorgio Ponza



> --- Omar Adobati <om...@gmail.com> wrote:
> 
> 
>>Oh, I'm sorry... you are using the basic auth
>>mode... there was a
>>missunderstanding... sorry again...
>>
>>
>>On Mon, 24 Jan 2005 14:29:44 +0100, Giorgio Ponza
>><gi...@opla.it> wrote:
>>
>>>Omar Adobati ha scritto:
>>>
>>>>I never try it, but maybe u can write your own
>>
>>code into the login
>>
>>>>page that redirect you on a different page if
>>
>>the login taske will not
>>
>>>>completed as needed...
>>>
>>>I can't try this :D
>>>There is no login page, only a box appearing over
>>
>>the browser asking user and password.
>>
>>>Thanks anyway
>>>
>>>Giorgio
>>>
>>>
>>
> ---------------------------------------------------------------------
> 
>>>To unsubscribe, e-mail:
>>
>>tomcat-user-unsubscribe@jakarta.apache.org
>>
>>>For additional commands, e-mail:
>>
>>tomcat-user-help@jakarta.apache.org
>>
>>>
>>
>>-- 
>>Adobati Omar
>>omar.adobati@gmail.it
>>
>>
> 
> ---------------------------------------------------------------------
> 
>>To unsubscribe, e-mail:
>>tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail:
>>tomcat-user-help@jakarta.apache.org
>>
>>
> 
> 
> 
> 
> 	
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - You care about security. So do we. 
> http://promotions.yahoo.com/new_mail
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 


-- 
-----------------------------------------------------------------------
Giorgio Ponza
Web Developer
Opla.com Ltd
Tel. +39 011 7506233
Fax. +39 011 746179
http://www.opla.it
-----------------------------------------------------------------------
Ci sono persone che hanno soldi e persone che sono ricche (Coco Chanel)

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: BASIC Authentication

Posted by Ashish Kulkarni <ku...@yahoo.com>.
Hi
May be try putting the following in web.xml file just
before taglib ( i am not sure but works with 2.2)
	<error-page>
		<error-code>403</error-code>

		<location>/pages/error/noaccess.jsp</location>
	</error-page>

	<error-page>
		<error-code>401</error-code>

		<location>/pages/error/noaccess.jsp</location>
	</error-page>

Ashish
--- Omar Adobati <om...@gmail.com> wrote:

> Oh, I'm sorry... you are using the basic auth
> mode... there was a
> missunderstanding... sorry again...
> 
> 
> On Mon, 24 Jan 2005 14:29:44 +0100, Giorgio Ponza
> <gi...@opla.it> wrote:
> > Omar Adobati ha scritto:
> > > I never try it, but maybe u can write your own
> code into the login
> > > page that redirect you on a different page if
> the login taske will not
> > > completed as needed...
> > 
> > I can't try this :D
> > There is no login page, only a box appearing over
> the browser asking user and password.
> > Thanks anyway
> > 
> > Giorgio
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> -- 
> Adobati Omar
> omar.adobati@gmail.it
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 
> 



	
		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: BASIC Authentication

Posted by Omar Adobati <om...@gmail.com>.
Oh, I'm sorry... you are using the basic auth mode... there was a
missunderstanding... sorry again...


On Mon, 24 Jan 2005 14:29:44 +0100, Giorgio Ponza <gi...@opla.it> wrote:
> Omar Adobati ha scritto:
> > I never try it, but maybe u can write your own code into the login
> > page that redirect you on a different page if the login taske will not
> > completed as needed...
> 
> I can't try this :D
> There is no login page, only a box appearing over the browser asking user and password.
> Thanks anyway
> 
> Giorgio
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


-- 
Adobati Omar
omar.adobati@gmail.it

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: BASIC Authentication

Posted by Giorgio Ponza <gi...@opla.it>.
Omar Adobati ha scritto:
> I never try it, but maybe u can write your own code into the login
> page that redirect you on a different page if the login taske will not
> completed as needed...

I can't try this :D
There is no login page, only a box appearing over the browser asking user and password.
Thanks anyway

Giorgio

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: BASIC Authentication

Posted by Omar Adobati <om...@gmail.com>.
I never try it, but maybe u can write your own code into the login
page that redirect you on a different page if the login taske will not
completed as needed...


On Mon, 24 Jan 2005 14:21:19 +0100, Giorgio Ponza <gi...@opla.it> wrote:
> Hi all
> I have a small problem trying to configure BASIC auth.
> Everything works good, but i'd like to know if i can change the default page when the user is not
> authenticated. I try to eplain better: if i write wrong 3 times the password, or i click on "cancel"
> button, a default Tomcat page appears saying
> 
> type Status report
> message
> description This request requires HTTP authentication ().
> 
> Is possible to change this default page?
> Tx everybody
> 
> Giorgio
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


-- 
Adobati Omar
omar.adobati@gmail.it

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org