You have to include a jboss-web.xml descriptor in the war WEB-INF
directory that specifies the security domain which will handle
authentication
and authorization.

<jboss-web>
    <security-domain>java:/jaas/myloginconfigname</security-domain>
</jboss-web>

See the 3.0 docs and the JavaWorld article I wrote on this.

xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
----- Original Message -----
From: "Piwowar, Heather" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 31, 2002 8:47 AM
Subject: [JBoss-user] No auth prompt using security-constraint


> I'm trying to get BASIC auth up and running for my web application. I have
> modified my web.xml file (see below). The implementation works fine under
> the J2EE reference implementation (I get prompted for a username and
> password when I try to reference the page).
>
> However, When I try to deploy my EAR under Jboss-2.4.4_Tomcat-4.0.1, I do
> not get prompted for a username and password... it acts as if the
> security-contraint is not set. There are no errors in loading the EAR or
> showing the page (see below).
>
> Any ideas? I'm feeling really stuck!
>
> Thanks so much,
> Heather



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to