Changed the way client id and secret are read.