Change oauthHost and apiHost to be customizable.