Connect-MgGraph on 2.41 crashes when making a connection with cert, fixes when using 2.39 or lower
Maintainer thường phản hồi trong vòng 1 ngày
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
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- csharp, powershell
- Lĩnh vực
- api, authentication
Hướng nghiên cứu
Start by reproducing the reported Connect-MgGraph certificate-authentication failure with Graph.Authentication 2.41.1, then compare it with 2.39, which the report says works. Investigate the RefreshCacheAsync implementation mismatch named in the exception; done means the certificate connection succeeds on 2.41.1 without downgrading.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
When using the following code with version 2.39 (or lower) of Graph.authentication, it will work.
Connect-MgGraph -ClientId $ClientID
-TenantId $TenantID -Certificate $cert
-NoWelcome
fresh device with 2.4.1 will crash with this error. work around is to install 2.39 or lower and use this graph.authentication.
Method 'RefreshCacheAsync' in type 'Microsoft.Graph.PowerShell.Authentication.Core.TokenCache.InMemoryTokenCacheOptions' from assembly 'Microsoft.Graph.Authentication.Core, Version=2.41.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
Expected behavior
I expect it to connect and work.
How to reproduce
Create a certificate and load it. This is used by an api registration with only https://graph.microsoft.com/DeviceManagementServiceConfig.ReadWrite.All
Connect-MgGraph -ClientId $ClientID
-TenantId $TenantID -Certificate $cert
-NoWelcome
upon using this connection command it will crash
SDK Version
No response
Latest version known to work for scenario above?
No response
Known Workarounds
downgrade and load Graph.authentication 2.39 or lower
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
- Ngôn ngữ chính
- C#
- Star
- 902
- Fork
- 233
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 30
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 microsoftgraph/msgraph-sdk-powershell
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
microsoftgraph/msgraph-sdk-powershell#3752 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status:waiting-for-triage type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
microsoftgraph/msgraph-sdk-powershell#3822 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Microsoft.Graph.Authentication dependency Microsoft.Graph.Authentication.Loader.dll is unsignedĐang mởstatus:waiting-for-triage type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
microsoftgraph/msgraph-sdk-powershell#3819 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Supported way to get the tokenĐang mởstatus:waiting-for-triage type:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
microsoftgraph/msgraph-sdk-powershell#3806 · 3 bình luận · 3 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Microsoft.Graph.Authentication fails after removal and re-import in the same PowerShell sessionĐang mởstatus:waiting-for-triage type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
microsoftgraph/msgraph-sdk-powershell#3805 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoftgraph/msgraph-sdk-powershell
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
AvaloniaUI/Avalonia#22420 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
dotnet/SqlClient#4823 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
type/automation type/tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
clockworklabs/SpacetimeDB#6124 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area-integrations
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày