I'm trying to get Authentication via AzureAD / Identity Platform to work in .NET 8 (or .NET 9 - it just can't be .NET 10).
I've followed the wizard of the connected service for Identity Platform. It created the Azure App and then nothing.
I'm fumbling through the rest. I added the following code into Program.cs:
builder.Services .AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme);app.UseAuthentication(); app.UseAuthorization();And that seems to have been accepted now without issue.
The problems:
Pages/Authentication.razorcomplains about a missing reference toMicrosoft.AspNetCore.Components.WebAssembly.AuthenticationI can comment or install that ok.Shared/LoginDisplay.razorcomplains about the same, fine. But it's also cannot find theSignOutSessionStateManagerto inject and I can't figure that one out.
I'm doubting whether this is even still a valid approach.