Author |
Message
|
PisgahMan |
Posted: Mon Nov 29, 2004 7:34 am Post subject: Tomcat Authentication for Workflow Web Client |
|
|
Voyager
Joined: 27 Jul 2004 Posts: 93
|
I have Tomcat 4 running the Workflow Web Client on my local machine(Win 2000). I have given out the URL to a couple of co-workers so they can use the web client to check on workflow processes. This is ok is DEV, but in higher enviroments and esp Prod I do not want people hitting these enviroments by hitting my web site.
How can I turn on Auth. for either Tomcat or WF Web client so that anyone hitting that URL will have to supply a password? |
|
Back to top |
|
 |
vennela |
Posted: Mon Nov 29, 2004 8:01 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Did you build your own web client or are you using the out of the box web client?
AFAIK, the Logon.jsp and RTC.html of the standard web client requies a userid and a password. |
|
Back to top |
|
 |
PisgahMan |
Posted: Mon Nov 29, 2004 8:33 am Post subject: |
|
|
Voyager
Joined: 27 Jul 2004 Posts: 93
|
Out of the box web client. The people I gave out the URL to have the uid and pw required by the web client, I need another layer so when I log into production I can shut them out. |
|
Back to top |
|
 |
Ratan |
Posted: Mon Nov 29, 2004 12:41 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
What you are asking for is at the webserver layer. I remember doing it in IIS. You have to grant the acces depending on the subnet from which your users access the webclient.
Dont know how it is done in Tomcat. _________________ -Ratan |
|
Back to top |
|
 |
PisgahMan |
Posted: Mon Nov 29, 2004 1:38 pm Post subject: SOLVED |
|
|
Voyager
Joined: 27 Jul 2004 Posts: 93
|
I figured it out. I added this in the \webapps\myproject\WEB-INF\web.xml. Actually it was already there, I just uncommented it and changed the role name.
<security-constraint>
<web-resource-collection>
<web-resource-name>Web Client</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>IBM WebSphere MQ Workflow Web Client</realm-name>
</login-config> |
|
Back to top |
|
 |
|