CommunityToolkit / CommunityToolkit/Graph-Controls

MsalProvider constructor crashes unless you pass scopes

未关闭
#195 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Area: Providers
主要语言
C#
星标
156
派生
38
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。