1
我正在使用Azure广告B2c开发Web应用程序,我想使用图形api(msgraph)来获取和设置用户的组。所以,我创建了一个azure广告b2c服务名称为B2Ctest和基于B2CTest的azure广告服务名称为Adtest。Azure广告和Azure广告b2c令牌验证失败
我使用这个API Microsoft Graph Client Library for .NET和使用Adtest设置msgraph。
我得到了B2Ctest服务的用户令牌,并将令牌传递给msgraph获取用户自己的组。它抛出一个异常。
我抓到msgraph发布http数据包。
地址:
https://graph.microsoft.com/v1.0/groups
响应:
{
"error": {
"code": "InvalidAuthenticationToken",
"message": "Access token validation failure.",
"innerError": {
"request-id": "e715c5f9-5c2c-40d8-ad09-71c848205d2c",
"date": "2017-10-09T16:10:20"
}
}
}
这清楚地表明您没有正确获取令牌,令牌无效。您应该调查令牌生成部分。 –