Double Authentication for Delegated Permission Use on 2.26 or Newer
維護者通常 2 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- powershell
研究方向
先使用預設的 Graph PowerShell Enterprise App,透過先執行 Connect-MgGraph 再執行 Get-MgDevice,比較 SDK 2.25 與 2.26 版本之間的委派驗證行為。調查同一個 PowerShell 程序中間歇性出現的第二次提示,並確認在呼叫 Disconnect-MgGraph 之前驗證都能持續使用。
由索引模型根據 Issue 內容生成。
描述
Describe the bug
When using Connect-MgGraph simply with the default Graph PowerShell Enterprise App on any version 2.26 or newer, specifically, when using with delegated permissions there seems to be an intermittent double auth prompt. I can't repro this at will, but I've confirmed it in both my corporate environment, personal PC environment, and corroborated with members of the PowerShell community via discord who also confirmed they've seen it as well.
Expected behavior
Single auth prompt should be persistent for the length of the PowerShell process session unless Disconnect-MgGraph is otherwise called.
How to reproduce
- Connect-MgGraph (no other parameters are required to repro since this is delegated permission use with auth code flow on the default Graph PowerShell enterprise app)
- Auth like normal using an account that has access and proper AAD role for delegated permission use (such as Directory.ReadWrite.All)
- After successful auth, run a subsequent cmdlet from the module (e.g. Get-MgDevice)
- Intermittently, it will prompt for auth again
SDK Version
2.26
Latest version known to work for scenario above?
2.25
Known Workarounds
Deal with double authentication prompts.
Debug output
No response
Configuration
No response
Other information
Don't quote me on whether this started with 2.25 or 2.26, it was right at the turn of the new year. It definitely never occurred on 2.24
- 主要語言
- C#
- 星號
- 901
- 分支
- 232
- 平均合併
- 1 天 22 小時
- 30 天內合併 PR
- 29
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoftgraph/msgraph-sdk-powershell 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
microsoftgraph/msgraph-sdk-powershell#3752 ·
維護者通常 2 天內回覆
-
status:waiting-for-triage type:bug
難度 4/5 3-5 天 新手友好度 22/100
microsoftgraph/msgraph-sdk-powershell#3822 ·
維護者通常 2 天內回覆
-
status:waiting-for-triage type:bug
難度 4/5 3-5 天 新手友好度 48/100
microsoftgraph/msgraph-sdk-powershell#3819 ·
維護者通常 2 天內回覆
-
Connect-MgGraph on 2.41 crashes when making a connection with cert, fixes when using 2.39 or lower未關閉status:waiting-for-triage type:bug
難度 4/5 3-5 天 新手友好度 48/100
microsoftgraph/msgraph-sdk-powershell#3816 ·
維護者通常 2 天內回覆
-
status:waiting-for-triage type:feature
難度 4/5 3-5 天 新手友好度 45/100
microsoftgraph/msgraph-sdk-powershell#3806 · 3 則留言 · 3 個 reaction ·
維護者通常 2 天內回覆
查看 microsoftgraph/msgraph-sdk-powershell 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 7 天內回覆
-
難度 1/5 1 小時以內 新手友好度 65/100
vchelaru/FlatRedBall2#1481 ·
維護者通常 1 天內回覆
-
ai-chat bug trivial
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
area-signalr
難度 2/5 1-3 小時 新手友好度 75/100
dotnet/aspnetcore#69842 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
AzureAD/microsoft-identity-web#4099 ·
維護者通常 1 天內回覆