CommunityToolkit / CommunityToolkit/Graph-Controls

MsalProvider constructor crashes unless you pass scopes

Đang mở
#195 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Area: Providers
Ngôn ngữ chính
C#
Star
156
Fork
38
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

https://github.com/CommunityToolkit/Graph-Controls/blob/d985141a317c96ad571bd9dd8097e38969b649d6/CommunityToolkit.Authentication.Msal/MsalProvider.cs#L63

the default value for scopes is null, but we unconditionally run the `Select(...)` on it. Fix would be to either not provide a default argument for scopes (since it's arguably needed), or at least use `scopes?.Select(...)` so that we don't end up with a null deref.
note there's 2 ctors with this issue

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

Đánh giá

Issue này chưa được đánh giá.

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.