Cross domain authentication using the password grant flow