The code shows actually you were playing with demo integrate-report-web-app, and the first picture shows the clientid and secretid are valid. When was this exception triggered, after clicking accept button in picture 1 ?
By the way, the sample is kind of straightforward and I don't get any issue when playing with it. Have you changed any code in the sample? How is it going if you try to re-download and re-open the sample project?