Skip to content

MsalProvider constructor crashes unless you pass scopes #195

Open

Description

@asklar

public MsalProvider(IPublicClientApplication client, string[] scopes = null, bool autoSignIn = true)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions