Azure-Samples / Azure-Samples/communication-services-javascript-quickstarts

ClientAuthError in manage-teams-identity-mobile-and-desktop

Đang mở
#229 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
status:triage
Ngôn ngữ chính
JavaScript
Star
108
Fork
207
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I want to call with an ACS resource related to my Microsoft Teams user (add-1-on-1-cte-video-calling). So to get the right ACS token, I wanted to get mine with the tool: manage-teams-identity-mobile-and-desktop

All environment variables are set, and it runs on the URL http://localhost:3000
http://localhost:3000/redirect is set on the Azure portal as a Single page application redirect URL for my Teams BOT.
So everything should be okay, but when I run this, after login my Teams User the callback URL called back, but not with the AccessToken, but this error
```
{"errorCode":"network_error","errorMessage":"Network request failed. Please check network trace to determine root cause. | Fetch client threw: Error: HTTP status code 400 | Attempted to reach: https://login.microsoftonline.com/[MY_TENANT_ID_HIDDEN]/oauth2/v2.0/token","subError":"","name":"ClientAuthError"}
```
Teams Bot has all the necessary permissions.

### This issue is for a: (mark with an `x`)
```
- [ x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```

### Minimal steps to reproduce
- run manage-teams-identity-mobile-and-desktop
- login with my Teams user
- get back the error above

### Any log messages given by the failure
>

### Expected/desired behavior
- I would like to get back the ACS access token of the impersonated Teams User

### OS and Version?
- Windows 11

### Versions
- code was downloaded a couple days ago

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với entry point manage-teams-identity-mobile-and-desktop và tái hiện luồng đăng nhập trên Windows 11 tại http://localhost:3000. Kiểm tra network trace để tìm request đến token endpoint của Microsoft identity platform và so sánh SPA redirect URL đã cấu hình với request. Hoàn tất khi callback hoàn thành mà không có ClientAuthError và trả về ACS access token như mong đợi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript
Lĩnh vực
authentication
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.