"SIPtech Community" wrote:
>
>"Jim Donnelly" wrote:
>>
>>"SIP Community" wrote:
>>>
>>>"Jim Donnelly" wrote:
>>>>
>>>>Hi,
>>>>
>>>>I need to preform some processing prior to authentication and if that
>>>>processing
>>>>fails I want to display a message to the User rather than prompting
>>>for
>>>>User Id
>>>>and Password. I am considering using AuthFilter.doPreAuth method to
>>>preform
>>>>this
>>>>check. Is it possible to stop authentication and forward to an error
>>>>page using
>>>>this method or will the App Server always proceed to Authenticate?

>>
>>>>
>>>>Can anyone suggest a better way of performing this check prior to

>Authentication?
>>>>
>>>>
>>>>I am using WLS 5.1 and J2SE v1.2.2.
>>>>
>>>>Thanks for any help you can provide.
>>>>
>>>>Jim
>>>
>>>
>>>hi ,
>>>
>>> I think, In your scenario when the authentication fails
>>>the AuthFilter will forward to the Error Page, so App Server
>>>will not proceed to check for authentication.
>>>
>>>
>>>
>>>regards,
>>>
>>>Elango TR

>>
>>Hi,
>>
>>Thanks for that. How do you make the doPreAuth() method fail without
>>actually
>>authenticating the user? The retrun type is void and no exceptions are
>>thrown.
>>
>>
>>Thanks again,
>>
>>Jim
>>

>
>
>
>hi Jim,
>
> If your process prior to the authentication fails, u can
>forward page to the ErrorPage using
>RequestDispatcher rd = request.getRequestDispatcher("ErrorPage.jsp");
>rd.forward(request,response);
>
>hope it helps
>
>
>regards,
>
>Elango TR


Thanks. Jim