[Bug] `pa app add data-source` / `pa connection list-datasets` fails with AuthenticationError for shared_sharepointonline, even on a brand-new connection
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- api, authentication, cli
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi với pa connection list-datasets và pa app add data-source cho shared_sharepointonline, sau đó lần theo đường đi của yêu cầu xác thực và yêu cầu API của connector rồi so sánh với lệnh Dataverse hoạt động thành công. Hoàn thành khi một kết nối tương tác mới có thể liệt kê các dataset SharePoint và thêm nguồn dữ liệu dạng bảng mà không gặp 403 hoặc AuthenticationError.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Environment
pa --version: 1.0.1- Cloud: commercial (not GCC/GCC High/DoD) — confirmed via make.powerapps.com
- OS/shell: Windows 11, PowerShell
- Auth: interactive user (
pa auth login), not a service principal
Symptom
Adding a SharePoint Online tabular data source fails with a 403 directly from the connector API Management layer:
HTTP error status: 403 for GET https://<env>.01.common.usa002.azure-apihub.net/apim/sharepointonline/<connection-id>/$metadata.json/datasets/<encoded-site-url>/tables/<encoded-table-name>
Response body:
{
"Message": "Missing Authorization header for a privileged call on connection.",
"Source": "product policy"
}
The same failure reproduces one level down, using pa connection list-datasets directly (no table/dataset involved at all):
pa connection list-datasets --connector shared_sharepointonline --connection-id <connection-id>
Failed to get datasets for connection '<connection-id>' and connector 'shared_sharepointonline': {"exitCode":3,"remediation":"Run `pa auth login` to sign in, or verify you have access to this environment.","name":"AuthenticationError"}
What I've ruled out
- Not a stale/broken connection: created a brand-new
shared_sharepointonlineconnection viapa connection create --connector shared_sharepointonline(fresh interactive OAuth consent, browser sign-in completed successfully). The new connection fails identically with the sameAuthenticationError. - Not connection ownership:
pa connection listshows both connections owned by the currently authenticated user. - Not environment mismatch: both connections appear under
pa connection listin the active environment, matchingenvironmentIdinpower.config.json. - Not a service-principal auth issue:
pa auth statusshows an interactive user account, not an app registration. - Not table-name encoding: reproduces even at the
list-datasetsstep, before any table/dataset value is involved. - Not GCC-specific (ruling out the class of bug in #348 / AADSTS65002): confirmed via make.powerapps.com this is a standard commercial tenant, and the error text/code here is a different one ("Missing Authorization header for a privileged call on connection" / product policy, not AADSTS65002).
- Not a broader auth/environment breakdown:
pa app add data-source --connector dataverse --table accountsucceeds cleanly in the same environment, same auth session, samepower.config.json. The failure is isolated toshared_sharepointonline.
Repro steps
pa auth login(interactive user)pa connection create --connector shared_sharepointonline(complete browser OAuth)pa connection list-datasets --connector shared_sharepointonline --connection-id <new-connection-id>- Observe
AuthenticationError/ 403 "Missing Authorization header for a privileged call on connection" (product policy)
- Ngôn ngữ chính
- TypeScript
- Star
- 504
- Fork
- 145
- Merge trung bình
- 4 giờ 3 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/PowerAppsCodeApps
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
microsoft/PowerAppsCodeApps#465 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/PowerAppsCodeApps#463 · 1 bình luận ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
microsoft/PowerAppsCodeApps#462 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
microsoft/PowerAppsCodeApps#461 ·
-
bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
microsoft/PowerAppsCodeApps#460 · 3 bình luận ·
Tất cả issue của microsoft/PowerAppsCodeApps
Issue tương tự
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Crush Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
ElementsProject/cln-application#167 · 1 bình luận · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Quantco/pnpm-licenses#17 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100