首页 > 解决方案 > Powershell:Get-MsalToken 错误 AADSTS7000218

问题描述

运行以下 Powershell 命令

$tokenresponse = Get-MsalToken -ClientId $clientID -TenantId $tenantID -Interactive  -RedirectUri "http://localhost"

给我错误:

AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.

我找到的所有解决方案都指向了方向,即在 Azure Protal 中我应该启用“允许公共客户端流”,但启用了此设置。知道如何获得令牌(我需要获得授权的令牌)

标签: powershellaccess-token

解决方案


推荐阅读