-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.The author of this issue needs to respond in order for us to continue investigating this issue.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issueIndicates that the team needs a repro project to continue the investigation on this issueStatus: No Recent Activityarea-authIncludes: Authn, Authz, OAuth, OIDC, BearerIncludes: Authn, Authz, OAuth, OIDC, Bearer
Description
This is dotnet 8 with Blazor WASM and Blazor server app.
builder.Services.AddMsalAuthentication(options =>
{
var serviceProvider = builder.Services.BuildServiceProvider();
var navigationManager = serviceProvider.GetRequiredService<NavigationManager>();
var currentUri = navigationManager.Uri;
if (currentUri.Contains("buy-me"))
{
builder.Configuration.Bind("AzureAdB2C:Paypal", options.ProviderOptions.Authentication);
options.ProviderOptions.DefaultAccessTokenScopes.Add(builder.Configuration.GetValue<string>("AzureAdB2C:ConsumerHub:ClientId"));
options.ProviderOptions.LoginMode = "redirect";
}
else
{
builder.Configuration.Bind("AzureAdB2C:DefaultAuthority", options.ProviderOptions.Authentication);
options.ProviderOptions.DefaultAccessTokenScopes.Add(builder.Configuration.GetValue<string>("AzureAdB2C:DefaultAuthority:ClientId"));
options.ProviderOptions.LoginMode = "redirect";
}
});

It appears the authentication state is not being accepted for the buy-me
route by MSAL. Can I please get some assistance on this please?
Metadata
Metadata
Assignees
Labels
Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.The author of this issue needs to respond in order for us to continue investigating this issue.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issueIndicates that the team needs a repro project to continue the investigation on this issueStatus: No Recent Activityarea-authIncludes: Authn, Authz, OAuth, OIDC, BearerIncludes: Authn, Authz, OAuth, OIDC, Bearer