powerbi-powershell icon indicating copy to clipboard operation
powerbi-powershell copied to clipboard

Get-AuthorizationHeader missing Client Secret

Open pcgeekus opened this issue 4 years ago • 0 comments

I tried your sample script, but it throws an error $authHeader = Get-AuthorizationHeader -ClientId $clientId -RedirectUri $redirectUri Exception calling "AcquireToken" with "4" argument(s): "AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. I tried adding -client_secret $mysecret, but it didn't like that. also tried -clientSecret $mysecret

Also, is the redirect URL really needed for running PS scripts?

pcgeekus avatar Mar 29 '20 14:03 pcgeekus