redirecting user on client side to the oauth page