File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Basic Authentication through websphere server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Basic Authentication through websphere server" Watch "Basic Authentication through websphere server" New topic
Author

Basic Authentication through websphere server

Deep Mukherjee
Greenhorn

Joined: Jan 04, 2010
Posts: 20
Can any one Help ,how can i enable basic security in web sphere for this web.xml


<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>TestWebProject</display-name>
<servlet>
<description>
</description>
<display-name>TestServlet</display-name>
<servlet-name>TestServlet</servlet-name>
<servlet-class>com.test.java.TestServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/TestServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>

<security-constraint>
<web-resource-collection>
<web-resource-name>IIMS</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>DELETE</http-method>
<http-method>HEAD</http-method>
<http-method>PUT</http-method>
<http-method>TRACE</http-method>
<http-method>OPTIONS</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>role1</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<role-name>role1</role-name>
</security-role>
</web-app>


I want to do role based authentication through Websphere server .If some one can guide me with step by step process ,would be very helpful.
Brian Hennessy
Ranch Hand

Joined: Oct 24, 2005
Posts: 57
Hi
I've used this tutorial before, its for WAS 5 but approach is still relevant

Testing J2EE Security Applications Using a Custom Registry in WebSphere Studio V5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Basic Authentication through websphere server
 
Similar Threads
Authentication and Authorization implementation using DD Problem
he doesn't ask for authenticate
username and password are not getting verified by tomcat
Invalid content taglib
problem on validatinfg role for security of </security-constraint>