Added X-Forwarded-Proto support for OAuth.