【发布时间】:2022-09-28 13:56:11
【问题描述】:
我按照https://techcommunity.microsoft.com/t5/yammer-blog/yammer-api-with-aad-tokens-postman-collection/ba-p/857923 此处的过程在 Azure 门户中创建了一个应用程序并进行了配置。
然后我调用这个 api 来获取令牌:
https://login.microsoftonline.com/[my tenant id]/oauth2/v2.0/token
我传入了 x-www-form-urlencoded 以下参数:
client_id = [my client id]
scope = https://api.yammer.com/.default
client_secret = [my secret]
grant_type = client_credentials
我取回了一个令牌,但它不适用于任何 Yammer api 调用。例如,当我打电话时
https://api.yammer.com/api/v1/messages/following.json
将令牌作为不记名令牌传递,然后我返回带有消息的 http 401:
No user id found for O365 JWT
这是什么意思?可能缺少什么?
标签: azure yammer yammer-api