Hello all,
My question involves running users through an authentication
scheme and subsequently forwarding the request (or redirecting
the response).
The authentication routine is there to pick up some data about
the user IF they have the authentication client open (it's
a sort of side car piece, similar to Kerberos). The issue
is that if they are not running the client, I want the same
thing to happen.. that is, to have the user forwarded to the
end URL. If the client is not open, an exception is thrown,
which results in IllegalStateException when I attempt to do
a response.sendRedirect in my catch statement (I assume
because the first exception flooded the buffer). I'd rather
not use a requestDispatcher.forward because the final URL
doesn't live on the same server, so I'd have to forward to
a jsp and then on to the end point.. which seems like a
hack to me.
I'm thinking there must be a better way to do this. Any ideas?
Thanks,
Terwin
My question involves running users through an authentication
scheme and subsequently forwarding the request (or redirecting
the response).
The authentication routine is there to pick up some data about
the user IF they have the authentication client open (it's
a sort of side car piece, similar to Kerberos). The issue
is that if they are not running the client, I want the same
thing to happen.. that is, to have the user forwarded to the
end URL. If the client is not open, an exception is thrown,
which results in IllegalStateException when I attempt to do
a response.sendRedirect in my catch statement (I assume
because the first exception flooded the buffer). I'd rather
not use a requestDispatcher.forward because the final URL
doesn't live on the same server, so I'd have to forward to
a jsp and then on to the end point.. which seems like a
hack to me.
I'm thinking there must be a better way to do this. Any ideas?
Thanks,
Terwin