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

MAUI BH+BWA+Identity article #34944

Merged
merged 7 commits into from
Mar 12, 2025
Merged

Conversation

guardrex
Copy link
Collaborator

@guardrex guardrex commented Mar 11, 2025

Fixes #34939

Look'in good thus far! 👍

Notes

  • Draft particulars for this article ...

    • Title: .NET MAUI Blazor Hybrid with a Blazor Web App and ASP.NET Core Identity
    • Description: Learn about the .NET MAUI Blazor Hybrid with a Blazor Web App that manages authentication with ASP.NET Core Identity sample app.
    • UID: blazor/hybrid/security/maui-blazor-web-identity
    • Path: \aspnetcore\blazor\hybrid\security\maui-blazor-web-identity.md
    • URL: /blazor/hybrid/security/maui-blazor-web-identity
  • Looks like path lengths are starting to become a problem for these apps. I started by naming the projects MauiBlazorWebIdentity to match other sample app naming, but that 💥 in my face on generated path lengths when compiling the solution. Therefore, I merely placed the sample app in a folder of that name and ended up sticking with MauiBlazorWeb for the projects. The sample is over at ...

    https://github.com/dotnet/blazor-samples/tree/main/9.0/MauiBlazorWebIdentity

    The important thing about having the word "Identity" on that is in the next point .......

  • Although this says the dev can convert the app to use whatever IdP that they want, devs prefer an Entra-based sample for Entra. I kind'a recommend that we have it, but I totally understand if its felt the conversion is fairly straightforward for the sorts of non-beginner devs working with this tech. Just in case we ever have an Entra version of this sample, we'd want to name this one with "Identity" so that we can name the other one with "Entra" (MauiBlazorWebEntra, uid: maui-blazor-web-entra, URL: /blazor/hybrid/security/maui-blazor-web-entra). Same deal if OIDC were ever a thing (...Oidc, -oidc).

  • If you'd like additional resources cross-linked at the end, let me have the links.


Internal previews

📄 File 🔗 Preview link
aspnetcore/blazor/hybrid/security/maui-blazor-web-identity.md aspnetcore/blazor/hybrid/security/maui-blazor-web-identity
aspnetcore/release-notes/aspnetcore-10.0.md aspnetcore/release-notes/aspnetcore-10.0
aspnetcore/toc.yml aspnetcore/toc

Copy link
Contributor

@BethMassi BethMassi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Article looks great. I added a few comments.

@guardrex
Copy link
Collaborator Author

@BethMassi ... Looking good! Does it need more reviewers, or shall we go ahead and publish it?

@BethMassi
Copy link
Contributor

I think we're good to publish. I'll work on Entra next.

@guardrex guardrex merged commit aed2500 into main Mar 12, 2025
3 checks passed
@guardrex guardrex deleted the guardrex/maui-blazor-hybrid-bwa-identity branch March 12, 2025 18:42
@guardrex
Copy link
Collaborator Author

@BethMassi ... Cool beans! I'm taking it to the ⚡LIVE⚡ branch now, so it should show up shortly.

When you create the Entra version of this, recommend that make the outer folder (the one holding the app folder and the solution file) ...

MauiBlazorWebEntra

... but make the sample named off of ...

MauiBlazorWeb (app folder, .sln file, .Web folder/project, .Shared folder/project)

That will match what was done here and make it a snap for me to position it in the samples repo later. Too much longer anyway, and I think you'll hit the same problem I hit in renaming this one ... paths that go beyond 256 chars (or whatever the limit is) and big 💥😈 when compiling the solution.

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

Successfully merging this pull request may close these issues.

MAUI Blazor Hybrid with BWA and auth article and sample app
2 participants