Get-OAuthInfo : User type of [ServicePrincipalId] is Unknown!
At AccessToken.ps1:1574 char:38
+ ... OAuthInfo = Get-OAuthInfo -Credentials $Credentials -ClientId $Client ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-OAuthInfo
Could not get OAuthInfo!
At AccessToken.ps1:1586 char:17
+ throw "Could not get OAuthInfo!"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Could not get OAuthInfo!:String) [], RuntimeException
+ FullyQualifiedErrorId : Could not get OAuthInfo!
I'm trying to get a refresh token using a service principal client secret like this:
But I get the following error:
However those credentials work using:
Is there a way to use AADInternals with service principal credentials?