examples/authorize: Not everyone has readline(); use fgets() instead.