Skip to content

No user scopes leads to error #14

Description

@jennyf19

from onovotny and copied from Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2#241

If you want to use .AddMsal(), there's no way to do so without any user scopes. It might be needed for Application flows.

If you use new string[0] for the scopes parameter, it'll throw in the OnAuthorizationCodeReceived callback since options.Scope will be null:
await tokenAcquisition.AddAccountToCacheFromAuthorizationCodeAsync(context, options.Scope).ConfigureAwait(false);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions