Fixing proxy requests in auth.