ROPC流:请求正文必须包含以下参数:'client_assertion'或'client_secret'

问题描述 投票:0回答:1

我正在测试MSAL和ROPC流程。运行样本https://github.com/Azure-Samples/ms-identity-python-desktop时出现错误:

python username_password_sample.py parameters.json
invalid_client
AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.

我在遵循MS文档并使用curl时遇到了同样的问题。请检查my other question SO社区帮助我解决问题的地方。将应用程序注册机密添加到curl请求后,我获得了有效的令牌,并且能够提取邮件。使我感到困惑的是,parameters.json文件中不存在secret

我正在测试MSAL和ROPC流程。当我运行示例https://github.com/Azure-Samples/ms-identity-python-desktop时出现错误:python username_password_sample.py parameters.json invalid_client ...

python msal
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.