[Bug] `pa app add data-source` / `pa connection list-datasets` fails with AuthenticationError for shared_sharepointonline, even on a brand-new connection
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- api, authentication, cli
調査の方向性
まず shared_sharepointonline に対して pa connection list-datasets と pa app add data-source を実行して失敗を再現し、次に認証とコネクタ API リクエストの経路を追跡して、成功する Dataverse コマンドと比較します。新しい対話型接続で SharePoint のデータセットを一覧表示し、403 や AuthenticationError を発生させずに表形式のデータソースを追加できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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)
- 主要言語
- TypeScript
- スター
- 504
- フォーク
- 145
- 平均マージ
- 4時間 3分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/PowerAppsCodeApps のほかの issue
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
microsoft/PowerAppsCodeApps#465 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/PowerAppsCodeApps#463 · コメント 1 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
microsoft/PowerAppsCodeApps#462 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
microsoft/PowerAppsCodeApps#461 ·
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
microsoft/PowerAppsCodeApps#460 · コメント 3 件 ·
microsoft/PowerAppsCodeApps の issue をすべて見る
似ている issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Crush オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
ElementsProject/cln-application#167 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Quantco/pnpm-licenses#17 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100