Closed NielsPilgaard closed 8 months ago
@NielsPilgaard thanks for contacting us.
@halter73 This looks like a straightforward bug and a PR. Can you take a look and follow up with the PR? If you are happy with the fix, I'm in favor of patching this.
This should be fixed in .NET 9 preview 2 by #53500. I explain in https://github.com/dotnet/aspnetcore/pull/53222#issuecomment-1955715376 why I don't think this meets the servicing bar for .NET 8.
Is there an existing issue for this?
Describe the bug
When using the Blazor Web App template with authentication, and logging in with an external login provider, a null reference experience can occur after being successfully redirected to the
ExternalLogin.razor
page.Expected Behavior
For the
ExternalLogin.razor
page to appear, and that no exception is thrown.Steps To Reproduce
The Blazor Web App template, with the authentication option
Individual Accounts
and InteractiveServer rendering mode. https://github.com/dotnet/aspnetcore/tree/main/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharpYou will need to have access to an external login provider, and add it to the template to reproduce this issue.
Exceptions (if any)
.NET Version
8.0.100
Anything else?
ASP.NET Core version: 17.8.358.6298
IDE: Microsoft Visual Studio Enterprise 2022 17.8.3
dotnet --info
output: