You wrote L1LdapAuthenticationHandler.java, correct? Can you share it as a 
gist, etc?



From: Claude Viéville [mailto:[email protected]]
Sent: Monday, June 20, 2016 7:03 AM
To: CAS Community <[email protected]>
Cc: [email protected]
Subject: Re: [cas-user] JSON Service for CAS Client does not follow success 
message of required Handler



Hello Misagh,

Sorry for the delay but I was out of my ofiice these last days.

cas-1.log is the log when the first handler sucesses with "vieville" : in 
this case the second handler is not runned by the authenticationManager 
despite of tryAll == true

The policy (AnyAuthenticationPolicy) is always satisfied when tryAll  == 
true

    @Override
    public boolean isSatisfiedBy(final Authentication authn) {
        if (this.tryAll) {
            return authn.getCredentials().size() == 
authn.getSuccesses().size() + authn.getFailures().size();
        }
        return !authn.getSuccesses().isEmpty();
    }
cas-2.log is a file log when the first handler is not satisfied. As you can 
see, a stack error is raised and the authentication fails.

I hope the files  logs may help you understand the behavior
best regards,

Claude

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/000a01d1cc28%242b9861e0%2482c925a0%24%40unicon.net.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to