Update the MauiBlazorWebIdentity sample to .NET 10#590
Update the MauiBlazorWebIdentity sample to .NET 10#590mattleibow wants to merge 2 commits intodotnet:mainfrom
Conversation
|
@guardrex I am opening this PR to update the samples to .NET 10. This is just the update of the app based on all the changes in the .NET 10 templates. I created this poor quality issue #591, but hopefully you can forgive that since @BethMassi and @danroth27 said it was cool to do. I am also skirting the rules since I am a Microsoft FTE. But this PR is specifically for the review. I am leaving it in draft for now until I get a preliminary review. |
|
Hi @mattleibow ... Where do we stand on this because release is next week? I'm trying to get all 10.0 samps in place by EOW, and I'd like to try and get this merged by then if possible. |
|
It seems like a lot of the changes are not directly related to using new API available in .NET 10. Can we also update the net9.0 app at https://github.com/dotnet/blazor-samples/tree/main/9.0/MauiBlazorWebIdentity with these changes? That would make it easier to review too. |
|
@halter73 ... UPDATED: Disregard what I just typed! 😄 ... I thought for a sec that you meant making the 9.0 sample a 10.0 sample. Now, I see that you're only referring to the version-agnostic changes that @mattleibow is making here. Whatever is done, there isn't much time left. Can we get this sample (and with the updates to the 9.0 sample) merged by time we reach release? |
|
@mattleibow ... Are you still planning on taking @halter73's advice and rolling 10.0 API features into the app and taking the version-agnostic feature updates back into the 9.0 app?
|
This pull request introduces several improvements and updates across the shared and web components of the MauiBlazorWeb project.
The most significant changes include upgrading the target framework and package versions to .NET 10, refactoring and consolidating service interfaces, enhancing navigation and authorization logic in the navigation menu, and adding new endpoints for passkey authentication. Additionally, minor styling and usability enhancements have been made.
Framework and Package Upgrades
MauiBlazorWeb.Shared.csprojtonet10.0and upgraded all related NuGet package references to their 10 versions.Navigation and Authorization Improvements
NavMenu.razorto use a more streamlined navigation structure, inject the newISupportedFeaturesservice, and conditionally display account management links based on feature support and user authorization status.NotFound.razorpage to provide a user-friendly message for missing content. This is part of the .NET 10 templates.Service Interface Refactoring
IFormFactor,IWeatherService) to use file-scoped namespaces and simplified method signatures.ISupportedFeaturesinterface for feature detection.Identity and Authentication Enhancements
IdentityComponentsEndpointRouteBuilderExtensions.csto support advanced authentication scenarios. This is part of the .NET 10 templates.Styling and Usability
_Imports.razorto include additional shared namespaces for easier access throughout the project.Fixes #591