Hi Peter,
You might want to think about registering
a single servlet instance
http://mywebserver/servlet/MyServlet
Then, have your user connect as:
http://mywebserver/servlet/MyServlet/Channel1
http://mywebserver/servlet/MyServlet/Channel2
http://mywebserver/servlet/MyServlet/Channel3
http://mywebserver/servlet/MyServlet/Channel4
In your servlet, you can then use request.getPathInfo ()
to get the channel name and check security based on that.
Tyler Van Gorder
[EMAIL PROTECTED]
Landacorp.
>-----Original Message-----
>From: Booth, Peter [SMTP:[EMAIL PROTECTED]]
>Sent: 17 Dec 1999 9:15 AM
>To: [EMAIL PROTECTED]
>Subject: Basic Authentication for distinct servlet instances
>
>Does anyone have experience of using Basic Authentication
>to define access to individual servlet instances of the same
>servlet code?
>
>I am using WebSphere 1.1 & Netscape Enterprise Server 3.5.
>
>I would like to register multiple aliases (servlet instances)
>in my servlet.properties file that look like so:
>
>MyServletChannel1 com.csfb.gfx.servlets.ChannelServlet
>MyServletChannel2 com.csfb.gfx.servlets.ChannelServlet
>MyServletChannel3 com.csfb.gfx.servlets.ChannelServlet
>MyServletChannel4 com.csfb.gfx.servlets.ChannelServlet
>
>This means that a url http://mywebserver/servlet/MyServletChannel1
>refers to a different servlet instance, than
>http://mywebserver/servlet/MyServletChannel2
>with both instances having the same code.
>
>My question is - how can I configure basic authentication so that
>different users have access to MyServletChannel1 and MyServletChannel2 ?
>
>Peter Booth
>[EMAIL PROTECTED]
>
>This message is for the named person's use only. It may contain
>confidential, proprietary or legally privileged information. No
>confidentiality or privilege is waived or lost by any mistransmission.
>If you receive this message in error, please immediately delete it and all
>copies of it from your system, destroy any hard copies of it and notify the
>sender. You must not, directly or indirectly, use, disclose, distribute,
>print, or copy any part of this message if you are not the intended
>recipient. CREDIT SUISSE GROUP, CREDIT SUISSE FIRST BOSTON, and each of
>their subsidiaries each reserve the right to monitor all e-mail
>communications through its networks. Any views expressed in this message
>are those of the individual sender, except where the message states
>otherwise and the sender is authorised to state them to be the views of
>any such entity.
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html