Fix for use of a public facing url as the cb url