Azure-Samples / powerbi-powershell

Samples for calling the Power BI REST API via PowerShell
MIT License
256 stars 189 forks source link

Fails, does not contain method named AcquireToken #39

Open gdeckler opened 4 years ago

gdeckler commented 4 years ago

Method invocation failed because [Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext] does not contain a method named 'AcquireToken'.

I checked and that is the case, https://docs.microsoft.com/en-us/dotnet/api/microsoft.identitymodel.clients.activedirectory.authenticationcontext?view=azure-dotnet

What is the replacement? AcquireTokenAsync, AquireTokenByAuthorizationCode?