The Wayback Machine - https://web.archive.org/web/20210808184624/https://github.com/dotnet/aspnetcore/issues/35162
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor WebAssembly MASL authentication error #35162

Open
IEvangelist opened this issue Aug 8, 2021 · 0 comments
Open

Blazor WebAssembly MASL authentication error #35162

IEvangelist opened this issue Aug 8, 2021 · 0 comments

Comments

@IEvangelist
Copy link
Member

@IEvangelist IEvangelist commented Aug 8, 2021

Describe the bug

I have a Blazor WebAssembly application that relies on:

<PackageReference Include="Microsoft.Authentication.WebAssembly.Msal" Version="6.0.0-preview.6.21355.2" />

For authentication, with an AAD B2C instance. It works perfectly, when running locally. But now that the app is deployed to Azure as a static web app, I get the following error:

"There was an error trying to log you in: 'Cannot read property 'toLowerCase' of undefined'"

The website is deployed here.

To Reproduce

Deploy a Blazor WebAssembly app (with PWA bits) to Azure static web apps, with AAD B2C auth. Try logging in.

Exceptions (if any)

None

Further technical details

Using .NET Core SDK Version: 6.0.100-preview.6.21355.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant