Don't use firefox profile and try below code:
driver.get("http://UserName:[email protected]");
If you're implementing it in IE browser, there are certain things which you need to do.
In case your authentication server requires username with domain like "domainuser" you need to add double slash /
to the url:
//localdomain\user:[email protected]