Hi, I guess you are talking about CAS 3.5 as with CAS 4.0, it doesn't return a boolean any more. I think you would need to throw some specific exception inheriting from AuthenticationException and handle it properly in a dedicated MyAuthenticationManagerImpl. Best regards, Jérôme
2014-05-15 11:59 GMT+02:00 Puneet Goyal <[email protected]>: > Hi , > > > > I am using Database for authenticating credentials of user and for the > business logic we’ve overridden QueryDatabaseAuthenticationHandler. > > Now , I want to return different authentication messages for different > cases, e.g. > > If a user is locked, on every authentication attempt, returned message > should be something like “your account is locked, please contact your > administrator’. Etc. > > > > But QueryDatabaseAuthenticationHandler returns a Boolean value and > returning false from QueryDatabaseAuthenticationHandler means BAD > CREDENTIALS, please correct me if this assumption is wrong. > > > > > > *The Question is, how do I return different authentication error messages > based upon different user conditions.* > > > > > > > > Regards > > Puneet Goyal > > -- > 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
