Change authenticated check to use authorization url endpoint.