Forum Discussion

fer_vd's avatar
fer_vd
Frequent Visitor
9 years ago
Solved

Api example to MVC

Hi, I used the example "integrate report into webapp" and this works. But now i'm trying to get this code into a MVC structure and i'm getting errors from the redirect. I have installed the package f...
  • fer_vd's avatar
    fer_vd
    9 years ago

    Alright.. so after a lot of try and error I found out the method AcquireTokenByAuthorizationCode is no longer supported in the new versions of Microsoft.IdentityModel.Clients.ActiveDirectory. I now tried version 2.22 which works. The example uses v2.19.

    In newer versions it is needed to use AcquireTokenByAuthorizationCodeAsync.