Elf icon indicating copy to clipboard operation
Elf copied to clipboard

Can't apply scope "access_as_user"

Open saigkill opened this issue 1 year ago • 0 comments

While launching the Admin Portal it tries to connect as: api://{Constants.ApiAppUrlGuid}/access_as_user.

After running the Deploy script i have just a "access_as_use" (without final r. See:

image

What can i do now?

Can i just change the code, from

builder.Services.AddMsalAuthentication(options => { builder.Configuration.Bind("AzureAd", options.ProviderOptions.Authentication); options.ProviderOptions.DefaultAccessTokenScopes.Add($"api://{Constants.ApiAppUrlGuid}/access_as_user"); });

to

builder.Services.AddMsalAuthentication(options => { builder.Configuration.Bind("AzureAd", options.ProviderOptions.Authentication); options.ProviderOptions.DefaultAccessTokenScopes.Add($"api://{Constants.ApiAppUrlGuid}/access_as_use"); });

saigkill avatar Sep 21 '24 22:09 saigkill