id and secret fields are renamed to clientId and clientSecret