Skip to content

"Blazor Server with Auth=B2C" template not correctly populating Identity Options. #47447

@MSFTJim

Description

@MSFTJim

The "Blazor Server with Auth=B2C" template is using a line of code that is not populating the Identity Options. Changing to the line of code used in other templates (Ex. WebApp) fixes the issue and provides access to the different B2C options, such as EditProfilePolicyId.

  • Incorrect line of code:

    • var options = microsoftIdentityOptions.CurrentValue;
      • Generated from the default template
  • Correct line of code:

    • var options = microsoftIdentityOptions.Get(OpenIdConnectDefaults.AuthenticationScheme);

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-identityIncludes: Identity and providersbugThis issue describes a behavior which is not expected - a bug.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions