-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ambarish,

On 3/4/2009 6:11 AM, Ambarish Mitra wrote:
> The external system does not store the tomcat realm roles.

Why don't you do what I suggested and override the hasRole() method in
your Realm to return true unconditionally? Or, you could include the
"tomcat" and "role1" roles when you create the GenericPrincipal object.
Doing both would, in fact, be the best option.

I kind of agree with Pid: why not simply have your Valve set the
principal for the request, including the list of roles (hint: there's a
GenericPrincipal constructor that takes a list of role names.... oh
wait, I already pointed that out).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmuklQACgkQ9CaO5/Lv0PBqPwCfe8aoDI9ESoc+XOVkeJPRsrTG
ackAniCXrX/3hXtJNOovUR2oAT/Zi3FN
=N3Tx
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to