I am using CAS and Acegi and I get re-directed to CAS, can log into my
service and also have single sign out worknig. Whenever I log in I get an
org.jasig.cas.ticket.TicketCreationException:
error.authentication.credentials.bad
in the log file. It doesn't seem to effect anything but it is annoying and I
would like to get rid of it. It seems to be caused by the fact that my:
public class CasPopulator implements CasAuthoritiesPopulator {
private AcegiUserDetailsService acegiUserDetailsService;
public UserDetails getUserDetails(String userName) throws
AuthenticationException {
return (User) acegiUserDetailsService.loadUserByUsername(userName);
}
... more methods here
}
class is being passed a value of _cas_stateful_ as the username. This of
course does not exist in my DB and so the exception is thrown.
This is the fragment from my acegi-security.xml
<bean id="casAuthenticationProvider"
class="org.acegisecurity.providers.cas.CasAuthenticationProvider">
<property name="casAuthoritiesPopulator">
<bean class="net.tootired.security.login.CasPopulator">
<property name="userDetailsService"
ref="jdbcAuthenticationDao"/>
</bean>
</property>
<property name="casProxyDecider" ref="casProxyDecider"/>
<property name="ticketValidator" ref="casProxyTicketValidator"/>
<property name="statelessTicketCache" ref="statelessTicketCache"/>
<property name="key" value="jforumlovesacegi"/>
</bean>
Does anyone know of a way to get rid of this, maybe I have an Acegi
misconfiguration?
--
View this message in context:
http://www.nabble.com/_cas_stateful_-gets-passed-to-me-as-a-username-from-Acegi---throws-exception-tp17428160p17428160.html
Sent from the CAS Users mailing list archive at Nabble.com.
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas