Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to send HTTP response in auth plugin ?

Status
Not open for further replies.

gwenl

Programmer
Feb 10, 2005
1
US
Hi,

How do I send an HTTP response in a auth plugin such as
JAAS Login Module or Trust Association Interceptor ?
I want to send an HTTP response (with cutom HTTP headers)
in some cases when authentication fails, but
HttpServletResponse is not passed into the interceptor
or JAAS login module.

I could use a combination of a custom pre-login Filter
and Trust Association Interceptor. The pre-login Filter
would do the actual authentication and store the
authenticated user name in a HttpSession attribute,
then the trust association interceptor would pick up
the authenticated user name from the HttpSession
attribute and return it in the getAuthenticatedUserName()
method. Would this work?
Is there any other way to do this ?
(I'm using websphere 5.1)

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top