You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by shanmugampl <sh...@india.adventnet.com> on 2003/03/14 06:07:05 UTC

Doubt regarding FormAuthenticator

I am currently working on SingleSignOn and require some changes to be 
done in the FormAuthenticator.java file. Instead of making changes to 
the original code, can I plugin my own FormAuthenticator. If yes how can 
I do it.

Thanks
Shanmugam.PL


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


Re: Doubt regarding FormAuthenticator

Posted by Bill Barker <wb...@wilshire.com>.
When Tomcat finds a Context-level Valve that implements o.a.c.Authenticator
(e.g. extends AuthenticatorBase), it uses that for authentication instead of
it's own internal Authenticator.

"shanmugampl" <sh...@india.adventnet.com> wrote in message
news:3E71AFC8.4010106@india.adventnet.com...
>
> In that case, how will the server know that the control should be
> directed to my Valve during FormAuthentication and not to the
> FormAuthenticator.
>
> Bill Barker wrote:
>
> >You can add a custom Authenticator (Form or otherwise) by adding under
the
> ><Context ...>
> >  <Valve className="com.myfirm.mypackage.MyAuthenticator" ... />
> ></Context>
> >
> >Of course, if you do this, Tomcat assumes that you know what you are
doing.
> >If you add a Form Authenticator to a Context that is configured for
Basic,
> >then you are on your own.
> >
> >"shanmugampl" <sh...@india.adventnet.com> wrote in message
> >news:3E716379.4090502@india.adventnet.com...
> >
> >
> >>I am currently working on SingleSignOn and require some changes to be
> >>done in the FormAuthenticator.java file. Instead of making changes to
> >>the original code, can I plugin my own FormAuthenticator. If yes how can
> >>I do it.
> >>
> >>Thanks
> >>Shanmugam.PL
> >>
> >>
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> >
>
>




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


Re: Doubt regarding FormAuthenticator

Posted by shanmugampl <sh...@india.adventnet.com>.
In that case, how will the server know that the control should be 
directed to my Valve during FormAuthentication and not to the 
FormAuthenticator.

Bill Barker wrote:

>You can add a custom Authenticator (Form or otherwise) by adding under the
><Context ...>
>  <Valve className="com.myfirm.mypackage.MyAuthenticator" ... />
></Context>
>
>Of course, if you do this, Tomcat assumes that you know what you are doing.
>If you add a Form Authenticator to a Context that is configured for Basic,
>then you are on your own.
>
>"shanmugampl" <sh...@india.adventnet.com> wrote in message
>news:3E716379.4090502@india.adventnet.com...
>  
>
>>I am currently working on SingleSignOn and require some changes to be
>>done in the FormAuthenticator.java file. Instead of making changes to
>>the original code, can I plugin my own FormAuthenticator. If yes how can
>>I do it.
>>
>>Thanks
>>Shanmugam.PL
>>    
>>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>


Re: Doubt regarding FormAuthenticator

Posted by Bill Barker <wb...@wilshire.com>.
You can add a custom Authenticator (Form or otherwise) by adding under the
<Context ...>
  <Valve className="com.myfirm.mypackage.MyAuthenticator" ... />
</Context>

Of course, if you do this, Tomcat assumes that you know what you are doing.
If you add a Form Authenticator to a Context that is configured for Basic,
then you are on your own.

"shanmugampl" <sh...@india.adventnet.com> wrote in message
news:3E716379.4090502@india.adventnet.com...
> I am currently working on SingleSignOn and require some changes to be
> done in the FormAuthenticator.java file. Instead of making changes to
> the original code, can I plugin my own FormAuthenticator. If yes how can
> I do it.
>
> Thanks
> Shanmugam.PL




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