Skip to content

Allow passing the "ui_locales" parameters for Azure AD B2C flows in Blazor WebAssembly with MSAL #45832

Closed
@efonsecab

Description

@efonsecab

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

In FairPlaySocial we are using Azure AD B2C Flows with MSAL for Authentication, the system already has implemented Culture/Language selection, so we need to be able to pass the "ui_locales" parameter to the Azure AD B2C flow, so that the external page is displayed in the user's selected culture.

We tried to use the Interactive Request Options approach describe in the link below, but the parameter never made it to the external url
https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.webassembly.authentication.interactiverequestoptions

Describe the solution you'd like

We would like to have the Interactive Request Options sending the required parameters to the Azure AD B2C flow

public void BeginLogIn()
    {
        InteractiveRequestOptions requestOptions =
            new()
            {
                Interaction = InteractionType.SignIn,
                ReturnUrl = Navigation.Uri,
            };

        requestOptions.TryAddAdditionalParameter("ui_locales", "es-CR");
        Navigation.NavigateToLogin("authentication/login", requestOptions);
    }

Alternatively, another possible solution, which may be better is to allow the use of events like this
image

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions