powerbi-powershell
powerbi-powershell copied to clipboard
Get-AuthorizationHeader missing Client Secret
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?