As far as I know you can't logout with BASIC auth since the browser keeps sending the authentication info. Use Form based auth. Or if you want to be really slick, have xdoclet create your web.xml for you and create a build time variable which will specify which authentication method to use. This way when you are doing development you can use BASIC, then in production use FORM based and only change one variable in one place to make the change. For more info see xdoclet's web site.
-James On Thu, 2003-04-03 at 07:53, [EMAIL PROTECTED] wrote: > Hi! > > I have searched the net, but could find no information, so I post my > question here. > > How do I do a logout from a Struts Action? > I am using JaasSecurityManager of JBoss, with BASIC authentication for the > war, running in TomCat (btw.: digest auth seems to be broken). > Login works fine, however, I am not getting a Principal from > request.getUserPrincipal(), and the request.isUserInRole() returns also > false for the role specified int the roles.properties file (although I can > see the protected parts of the web-application). > > I am doing something wrong? > (I am using the org.jboss.security.auth.spi.UsersRolesLoginModule, JBoss > 3.0.6/TomCat4.1.18, JDK 1.4.1 on Windows) > > Cheers and thanks > Tibor > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
