API changes to get tenant username and password from context