You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Damian Minkov <da...@space-comm.com> on 2003/09/30 13:15:06 UTC
Re[2]: Custom authenticate
Hello Tim,
Tuesday, September 30, 2003, 2:05:20 PM, you wrote:
TF> Can you just change the username to be username@group or username/group and
TF> then write a custom Realm on that. Custom Realms == easy to write. Custom
TF> authenticator Valves == PITA.
TF> Look for any Bill Barker posts in the archives with Authenticator for more
TF> information about writing custom ones.
TF> -Tim
TF> Damian Minkov wrote:
>> For 2 weeks I'm fighting with the authentication in Tomcat.
>>
>> Is it possible to make it authenticate the user with 3 params.
>> For example username, password, and group belongs to.
>> I need the third one because the roles of the user are different for
>> different groups.
>>
>> I tried to make my own Valve and realm and to use the Valve as
>> authenticator but I can't get it work.
>>
TF> ---------------------------------------------------------------------
TF> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
TF> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
No I can't make it this way beacuse i have a to step login page
First step : username and password
Second step : choose group /
the groups you choose from are loaded
according the username
And this two steps doesn't allow me to make it this way.
--
Best regards,
Damian mailto:damian@space-comm.com
Re: Custom authenticate
Posted by Tim Funk <fu...@joedog.org>.
Via ...
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=write+servlet+authentication+filter&btnG=Google+Search
http://java.sun.com/products/servlet/Filters.html
-Tim
Damian Minkov wrote:
> Hello Tim,
>
> Tuesday, September 30, 2003, 2:21:26 PM, you wrote:
>
> TF> WIth those restrictions, I would dump container based authorization and rely
> TF> on filters. Your webapp would then be portable for other containers as well
> TF> as non-dependent on tomcat internals.
>
> TF> -Tim
>
> TF> Damian Minkov wrote:
> I didn't fully understand your suggestion . How can i do this?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Custom authenticate
Posted by Tim Funk <fu...@joedog.org>.
Via ...
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=write+servlet+authentication+filter&btnG=Google+Search
http://java.sun.com/products/servlet/Filters.html
-Tim
Damian Minkov wrote:
> Hello Tim,
>
> Tuesday, September 30, 2003, 2:21:26 PM, you wrote:
>
> TF> WIth those restrictions, I would dump container based authorization and rely
> TF> on filters. Your webapp would then be portable for other containers as well
> TF> as non-dependent on tomcat internals.
>
> TF> -Tim
>
> TF> Damian Minkov wrote:
> I didn't fully understand your suggestion . How can i do this?
>
Re[2]: Custom authenticate
Posted by Damian Minkov <da...@space-comm.com>.
Hello Tim,
Tuesday, September 30, 2003, 2:21:26 PM, you wrote:
TF> WIth those restrictions, I would dump container based authorization and rely
TF> on filters. Your webapp would then be portable for other containers as well
TF> as non-dependent on tomcat internals.
TF> -Tim
TF> Damian Minkov wrote:
>> Hello Tim,
>>
>> Tuesday, September 30, 2003, 2:05:20 PM, you wrote:
>>
>> TF> Can you just change the username to be username@group or username/group and
>> TF> then write a custom Realm on that. Custom Realms == easy to write. Custom
>> TF> authenticator Valves == PITA.
>>
>> TF> Look for any Bill Barker posts in the archives with Authenticator for more
>> TF> information about writing custom ones.
>>
>> TF> -Tim
>>
>> TF> Damian Minkov wrote:
>>
>>
>>>>For 2 weeks I'm fighting with the authentication in Tomcat.
>>>>
>>>>Is it possible to make it authenticate the user with 3 params.
>>>>For example username, password, and group belongs to.
>>>>I need the third one because the roles of the user are different for
>>>>different groups.
>>>>
>>>>I tried to make my own Valve and realm and to use the Valve as
>>>>authenticator but I can't get it work.
>>>>
>>
>>
>>
>> TF> ---------------------------------------------------------------------
>> TF> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> TF> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>> No I can't make it this way beacuse i have a to step login page
>> First step : username and password
>> Second step : choose group /
>> the groups you choose from are loaded
>> according the username
>> And this two steps doesn't allow me to make it this way.
>>
>>
TF> ---------------------------------------------------------------------
TF> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
TF> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
I didn't fully understand your suggestion . How can i do this?
--
Best regards,
Damian mailto:damian@space-comm.com
Re[2]: Custom authenticate
Posted by Damian Minkov <da...@space-comm.com>.
Hello Tim,
Tuesday, September 30, 2003, 2:21:26 PM, you wrote:
TF> WIth those restrictions, I would dump container based authorization and rely
TF> on filters. Your webapp would then be portable for other containers as well
TF> as non-dependent on tomcat internals.
TF> -Tim
TF> Damian Minkov wrote:
>> Hello Tim,
>>
>> Tuesday, September 30, 2003, 2:05:20 PM, you wrote:
>>
>> TF> Can you just change the username to be username@group or username/group and
>> TF> then write a custom Realm on that. Custom Realms == easy to write. Custom
>> TF> authenticator Valves == PITA.
>>
>> TF> Look for any Bill Barker posts in the archives with Authenticator for more
>> TF> information about writing custom ones.
>>
>> TF> -Tim
>>
>> TF> Damian Minkov wrote:
>>
>>
>>>>For 2 weeks I'm fighting with the authentication in Tomcat.
>>>>
>>>>Is it possible to make it authenticate the user with 3 params.
>>>>For example username, password, and group belongs to.
>>>>I need the third one because the roles of the user are different for
>>>>different groups.
>>>>
>>>>I tried to make my own Valve and realm and to use the Valve as
>>>>authenticator but I can't get it work.
>>>>
>>
>>
>>
>> TF> ---------------------------------------------------------------------
>> TF> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> TF> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>> No I can't make it this way beacuse i have a to step login page
>> First step : username and password
>> Second step : choose group /
>> the groups you choose from are loaded
>> according the username
>> And this two steps doesn't allow me to make it this way.
>>
>>
TF> ---------------------------------------------------------------------
TF> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
TF> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
I didn't fully understand your suggestion . How can i do this?
--
Best regards,
Damian mailto:damian@space-comm.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Custom authenticate
Posted by Tim Funk <fu...@joedog.org>.
WIth those restrictions, I would dump container based authorization and rely
on filters. Your webapp would then be portable for other containers as well
as non-dependent on tomcat internals.
-Tim
Damian Minkov wrote:
> Hello Tim,
>
> Tuesday, September 30, 2003, 2:05:20 PM, you wrote:
>
> TF> Can you just change the username to be username@group or username/group and
> TF> then write a custom Realm on that. Custom Realms == easy to write. Custom
> TF> authenticator Valves == PITA.
>
> TF> Look for any Bill Barker posts in the archives with Authenticator for more
> TF> information about writing custom ones.
>
> TF> -Tim
>
> TF> Damian Minkov wrote:
>
>
>>>For 2 weeks I'm fighting with the authentication in Tomcat.
>>>
>>>Is it possible to make it authenticate the user with 3 params.
>>>For example username, password, and group belongs to.
>>>I need the third one because the roles of the user are different for
>>>different groups.
>>>
>>>I tried to make my own Valve and realm and to use the Valve as
>>>authenticator but I can't get it work.
>>>
>
>
>
> TF> ---------------------------------------------------------------------
> TF> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> TF> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> No I can't make it this way beacuse i have a to step login page
> First step : username and password
> Second step : choose group /
> the groups you choose from are loaded
> according the username
> And this two steps doesn't allow me to make it this way.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Custom authenticate
Posted by Tim Funk <fu...@joedog.org>.
WIth those restrictions, I would dump container based authorization and rely
on filters. Your webapp would then be portable for other containers as well
as non-dependent on tomcat internals.
-Tim
Damian Minkov wrote:
> Hello Tim,
>
> Tuesday, September 30, 2003, 2:05:20 PM, you wrote:
>
> TF> Can you just change the username to be username@group or username/group and
> TF> then write a custom Realm on that. Custom Realms == easy to write. Custom
> TF> authenticator Valves == PITA.
>
> TF> Look for any Bill Barker posts in the archives with Authenticator for more
> TF> information about writing custom ones.
>
> TF> -Tim
>
> TF> Damian Minkov wrote:
>
>
>>>For 2 weeks I'm fighting with the authentication in Tomcat.
>>>
>>>Is it possible to make it authenticate the user with 3 params.
>>>For example username, password, and group belongs to.
>>>I need the third one because the roles of the user are different for
>>>different groups.
>>>
>>>I tried to make my own Valve and realm and to use the Valve as
>>>authenticator but I can't get it work.
>>>
>
>
>
> TF> ---------------------------------------------------------------------
> TF> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> TF> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> No I can't make it this way beacuse i have a to step login page
> First step : username and password
> Second step : choose group /
> the groups you choose from are loaded
> according the username
> And this two steps doesn't allow me to make it this way.
>
>