Scott,
Thanks for the reply.
But Is this possible to change the behavior of default Authentication
Manager in order to skip the execution of second handler even if the first
handler returns false.
I don't want to skip the execution of second handler in all cases, but only
in certain condition.
For Example: Suppose there are 2 authentication handlers viz,
FirstAuthenticationHandler and SecondAuthenticationHandler
FirstAuthenticationHandler.java
...
..
authenticated = doAuthentication();
// Check whether user is authenticated
if(authenticated)
{
return true;
}
// If user authentication fails then check whether to skip the execution of
second authentication handler
if(condition)
{
// Code to skip Second Authentication Handler
return false;
}
return false;
Is this possilbe?
Thanks,
Mayank.
On Wed, Jan 27, 2010 at 6:12 PM, Scott Battaglia
<[email protected]>wrote:
> The default Authentication Manager will try the handlers in the order they
> are configured, and stop at the first one that returns true.
>
> Cheers,
> Scott
>
>
> On Wed, Jan 27, 2010 at 12:30 AM, Mayank Mishra <[email protected]
> > wrote:
>
>> Hi all,
>>
>> I'm using multiple authentication handlers viz,
>> CustomAuthenticationHandler and
>> CasAuthenticationHandler
>>
>> I want to control the CasAuthenticationHandler from my
>> CustomAuthenticationHandler. I mean If any specific condition returns true
>> in CustomAuthenticationHandler then do not execute CasAuthenticationHandler.
>> Is there any possiblity that I can skip the execution of
>> CasAuthenticationHandler based on the specific condition implemented in
>> CustomAuthenticationHandler?
>>
>>
>>
>>
>> --
>> You are currently subscribed to [email protected] as:
>> [email protected]
>>
>>
>> To unsubscribe, change settings or access archives, see
>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>
>>
> --
> You are currently subscribed to [email protected] as:
> [email protected]
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-user
>
>
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user