Rewrite username with SAML/OpenIDC Logins

I think the required modifications would be limited to a single function.