You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by exkor <ex...@gmail.com> on 2008/06/19 22:00:23 UTC
multiple login pages within one webapp
Hi
Is it possible to have multiple login forms, configured to work with
mutually exclusive tables. in the same webapp?
For example I want to have a login page for users of type A and a different
login page for users of type B.
Users of type A have no relation to users of type B and vice-versa.
Thanks
-Assaf
Re: multiple login pages within one webapp
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Exkor,
exkor wrote:
| What if I would have all users in one table, can I make multiple secured
| areas each exclusively dedicated to a different role?
Of course.... this is what <security-constraint>s are for. Just use
different roles for different operations in your webapp.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkhbCwoACgkQ9CaO5/Lv0PCQUgCguhj0Pn8Zohx4wl0Uf2qvYj+y
4ocAnRnpLOeyxElbu9XQlJteQjvBLZsE
=rrvD
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: multiple login pages within one webapp
Posted by exkor <ex...@gmail.com>.
Hi Chris
What if I would have all users in one table, can I make multiple secured
areas each exclusively dedicated to a different role?
If all fails I would use securityFilter
Thanks
-Assaf
On Thu, Jun 19, 2008 at 4:13 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Assaf,
>
> exkor wrote:
> | Is it possible to have multiple login forms, configured to work with
> | mutually exclusive tables. in the same webapp?
>
> Not when using TC's container-managed authentication and authorization.
> You could use securityfilter (http://securityfilter.sourceforge.net/) in
> it's source release with FlexibleRealmInterface and implement your own
> Realm (which checks maybe some form element?) and uses different
> authentication sources.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkhavd0ACgkQ9CaO5/Lv0PBXegCggfDA23hPl9GTBY3JO744jiV3
> KZ0An3Y2iFWaKvz99T5P0joWzhE/olav
> =h+Da
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: multiple login pages within one webapp
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Assaf,
exkor wrote:
| Is it possible to have multiple login forms, configured to work with
| mutually exclusive tables. in the same webapp?
Not when using TC's container-managed authentication and authorization.
You could use securityfilter (http://securityfilter.sourceforge.net/) in
it's source release with FlexibleRealmInterface and implement your own
Realm (which checks maybe some form element?) and uses different
authentication sources.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkhavd0ACgkQ9CaO5/Lv0PBXegCggfDA23hPl9GTBY3JO744jiV3
KZ0An3Y2iFWaKvz99T5P0joWzhE/olav
=h+Da
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org