[英]Azure ad and Azure ad b2c token validation failure
I am using Azure ad B2c development Web app,I want use the graph api (msgraph) to get and set the user's group.So,I create a azure ad b2c service name is B2Ctest,and B2CTest based azure ad service name is Adtest. 我正在使用Azure ad B2c开发Web应用程序,我想使用图形api(msgraph)来获取并设置用户的组。因此,我创建了一个Azure ad b2c服务名称为B2Ctest,并且基于B2CTest的Azure广告服务名称为Adtest。
I use this api Microsoft Graph Client Library for .NET and used Adtest setting msgraph. 我使用此api Microsoft Graph Client Library for .NET并使用了Adtest设置msgraph。
I get the B2Ctest service's user token, and passing the token to msgraph get the user own's group.It's throw a exception. 我得到了B2Ctest服务的用户令牌,并将令牌传递给msgraph得到了用户自己的组,这引发了异常。
I catch msgraph post http packet. 我捕获了msgraph发布http数据包。
address: 地址:
https://graph.microsoft.com/v1.0/groups https://graph.microsoft.com/v1.0/groups
response: 响应:
{
"error": {
"code": "InvalidAuthenticationToken",
"message": "Access token validation failure.",
"innerError": {
"request-id": "e715c5f9-5c2c-40d8-ad09-71c848205d2c",
"date": "2017-10-09T16:10:20"
}
}
}
aad b2c access token aad b2c访问令牌
I found,that aad b2c access token and aad access token are not the same. 我发现,aad b2c访问令牌和aad访问令牌不同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.