【发布时间】:2018-02-01 05:52:05
【问题描述】:
我正在使用 Microsoft Graph API 示例项目。我可以正常登录。
我正在尝试使用以下代码更新登录用户的密码:
public async Task<bool> UpdatePassword(GraphServiceClient graphClient, string newPassword)
{
User me = await graphClient.Me.Request().UpdateAsync(new User
{
PasswordProfile = new PasswordProfile
{
Password = newPassword,
ForceChangePasswordNextSignIn = false
},
});
return true;
}
当我执行代码时,出现以下错误:
{
Status: 500
Message: "No offeractions were provided for validating consent."
Internal error: "empty offerActions array."
}
知道我可能做错了什么吗?
我通过https://apps.dev.microsoft.com 的应用注册门户网站授予对所有“用户”相关的访问权限
谢谢!
【问题讨论】: