Hack to allow legacy apps to continue working (won't work for new oauth installs).