Сообщение отправки Botframework (API действий) не работает с Single Tenant - PullRequest
0 голосов
/ 14 июля 2020

Мы получили токен, используя этот URL-адрес

curl -L -X POST 'https://login.microsoftonline.com/ {tenantId} /oauth2/v2.0/token' -H 'Content-Type: application / x- www-form-urlencoded '--data-urlencode' grant_type = client_credentials '--data-urlencode' client_id = {clientId} '--data-urlencode' client_secret = {clientSecret} '--data-urlencode' scope = https://api.botframework.com/.default 'также пробовал с областью видимости как 'scope = https: ///.default'

после curl для отправки сообщения

curl -L -X POST' https://smba.trafficmanager.net/amer/v3/conversations/a%3A1avP6I-6wg4hehM5WoPtDdIr9jg13IculvOc2qgMiEoZ8sFXif3_asdfasfasfasfasfsfasfasfafasfsfa_adfasfasfafafasfasfasasfs_/activities '-H' Авторизация: Bearer {access_token} '--data-raw' {"type": "message", "channelId": "msteams", "from": {"id": "xx: adfasfdafsafaasdfasd", "name": "lowerten" }, "recipient": {"id": "afasfasfasfafaf", "name": "xyz", "aadObjectId": "xxxxxxxxxxxxxxxxxxxxxxx"}, "text": "Hi!", "channelData": {"tenant": {"id": "xxxxxxxxxxxxxxxxxxxxxxxx"}}} '

Мы получаем следующую ошибку:

401 {сообщение: «Авторизация была отклонена для этого запроса». }

Есть ли что-нибудь, что нам здесь не хватает?

...