We have an application that performs HRD based on the users e-mail address that they enter.
Then (in some cases) it either redirects the user to ADFS WAP for authentication or another IdP.
The redirect includes the e-mail address entered by the user as login_hint/user_hint to ADFS which then automatically populates the user name field with the e-mail address.
Unfortunately this e-mail address cannot be used to authenticate using our ADFS so users are forced to clear the user name field and type in the correct user name.
Since this is very unintuitive many users dont understand they need to do this and this results in failed authentication.
Is there a way to clear the user name field from the login_hint/user_hint?
I am guessing using onload.js to NULL the value of the login_hint or username parameter would be the way to do it but how exactly?