Fixed oauth call to provide ability to switch to HTTP rather than HTTPS for reverse proxied users