Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > container-auth vs servlet-auth role-checking?

Reply
Thread Tools

container-auth vs servlet-auth role-checking?

 
 
Mark Chai
Guest
Posts: n/a
 
      10-01-2003
dear all,

has anyone managed to set the user Principal in a http session using
servlet-authentication? this is easy to do for container-based auth, but
it's not flexible enough for a custom authentication and authorization
module I'm creating.

the only problem is that I cannot set a Principal into the http session and
thus cannot use the typical code for checking role authorization, i.e.
isUserInRole() for Resin or hasRole() functions in Tomcat?

TIA,
Mark
m.chai(at)ieee.org


 
Reply With Quote
 
 
 
 
Christophe Vanfleteren
Guest
Posts: n/a
 
      10-01-2003
Mark Chai wrote:

> dear all,
>
> has anyone managed to set the user Principal in a http session using
> servlet-authentication? this is easy to do for container-based auth, but
> it's not flexible enough for a custom authentication and authorization
> module I'm creating.
>
> the only problem is that I cannot set a Principal into the http session
> and thus cannot use the typical code for checking role authorization, i.e.
> isUserInRole() for Resin or hasRole() functions in Tomcat?
>
> TIA,
> Mark
> m.chai(at)ieee.org


no, programmatic login unfortunately doesn't work with tomcat.

--
mvg,
Christophe Vanfleteren
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments