Handle parameters including id & secret