Hi, No CAS configurable means. For editing what is entered, have you already looked into a Spring validator added to the class handling the login form to report any errors? Not recommended but also javascript on the login jsp itself might catch the bad entries.
Brian On Tue, Jan 24, 2012 at 2:20 PM, Richard Frovarp <richard.frov...@ndsu.edu>wrote: > Is there a way to modify the username provided by the user before it is > sent to the authentication mechanisms? I want to be able to trim it, lower > case it, and most importantly strip off everything from the '@' symbol on > if they provided it. We have some systems that are outside of our control > that require @ndsu.edu or something similar, and sometimes people use > that account name against CAS. I just want to silently remove that, and any > other offending pieces from the user name as the authentication system CAS > is going against it will fail if @ndsu.edu is present. > > I would like to be able to turn this (without the quotes): > > ' richard.frov...@ndsu.edu ' > > into > > 'richard.frovarp' > > And I would like to be able to do that without having to do it in multiple > places for the different AuthenticationHandler and attribute code. I can > extend UsernamePasswordCredentials, but getUsername() is final, and so is > setUsername(). After reading the Public API page about the use of the final > keyword, I decided that I should email this list. > > Is there a recommended way of doing this? > > -- > You are currently subscribed to cas-dev@lists.jasig.org as: > brianxsav...@gmail.com > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/**display/JSG/cas-dev<http://www.ja-sig.org/wiki/display/JSG/cas-dev> > -- You are currently subscribed to cas-dev@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev