<div dir="ltr">Hi all.  <div><br></div><div>I'm working on setting up an IDP for a small college.  I want to accept usernames in two forms:  'bob.user' & '<a href="mailto:bob.user@mycollege.edu">bob.user@mycollege.edu</a>'.  I just want to knock the '@<a href="http://mycollege.edu">mycollege.edu</a>' off the end if the user submits it that way.  Should be easier than writing this email. </div><div><br></div><div>Unfortunately, my java isn't great.  I still don't really know what a bean is.  I don't know the right way to go about doing this.  Is there a property file I should edit?  An XML file?  I noticed the source for Shib is broken up into many pieces, so which piece would I want?</div><div><br></div><div>Just to be extra clear, I'm talking about the stage in the process where the user enters a username and password into the web form and the idp gets the form data.  So, the form collection and interpretation stage, whatever that is.  Unless, of course, that's a bad idea and you would suggest doing it at a different stage.  </div><div><br></div><div>I need it to happen before authentication, because authentication will fail if I don't get the username massaged properly.  </div><div><br></div><div>And no, I'm not going to just tell my users to learn to type.  This is a computer, it should compute things.  Pulling a known substring off the end of a string is easy for a computer and hard for 10,000 random humans.</div><div><br></div><div>Thanks!</div><div>-Dylan <br></div></div>