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.
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.