tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "e-Denton Subscriber" <subscri...@e-denton.com>
Subject Re: BASIC authentication without Popup Verification window
Date Sat, 23 Oct 2004 21:53:14 GMT
Nevermind. I had a 401 page defined in web.xml, so it was being sent there
instead of the browser. My mistake.

----- Original Message ----- 
From: "e-Denton Subscriber" <subscriber@e-denton.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Saturday, October 23, 2004 4:06 PM
Subject: BASIC authentication without Popup Verification window


> Hi!
>
> I can't figure out why my BASIC authorization isn't working for my app.
The
> pages show up as 401 Not Authorized, but no popup authorization window
pops
> up! Further, the admin and manager apps are working using my JDBCRealm
> (:Enter Password" window does pop up). Help appreciated.
>
> server.xml:
> -----------
> <!-- 
> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> debug="0" resourceName="UserDatabase"/>
> <Realm className="org.apache.catalina.realm.MemoryRealm" />
> -->
>
> <Realm resourceName="PortalDatabase"
> className="org.apache.catalina.realm.JDBCRealm"
> debug="99"
> driverName="com.mysql.jdbc.Driver"
> connectionURL="jdbc:mysql://127.0.0.1:3306/myDB"
> connectionName="myUser"
> connectionPassword="myPassword"
> userTable="users" userNameCol="user_name" userCredCol="user_pass"
> userRoleTable="user_roles" roleNameCol="role_name" />
>
> web.xml:
> --------
> <security-constraint>
> <web-resource-collection>
> <web-resource-name>Maintenance</web-resource-name>
> <url-pattern>/maint/*</url-pattern>
> <url-pattern>/maintenance.do</url-pattern>
> </web-resource-collection>
> <auth-constraint>
> <role-name>manager</role-name>
> </auth-constraint>
> </security-constraint>
>
> <login-config>
> <auth-method>BASIC</auth-method>
> <realm-name>Portal</realm-name>
> </login-config>
>
> <security-role>
> <description>manager</description>
> <role-name>manager</role-name>
> </security-role>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message