Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Blazor
  3. BlazorWithIdentity

BlazorWithIdentity

MITC#v2.0.0

A project template for a Blazor WebAssembly hosted app with cookie-based authentication and EF Core Identity.

GitHubGitHub
474 stars105 forks0 contributors

What is BlazorWithIdentity?

Blazor with Identity is a project template for creating Blazor WebAssembly hosted applications with integrated authentication and user management. It solves the problem of setting up secure, cookie-based authentication with EF Core Identity by providing a pre-configured starting point. Developers can quickly generate a new project with authentication already implemented, saving time and ensuring best practices.

Target Audience

This template is for .NET developers building Blazor WebAssembly applications who need a robust authentication system without manual setup. It's particularly useful for full-stack developers or teams starting new projects that require user registration, login, and role-based access.

Value Proposition

Developers choose Blazor with Identity because it eliminates the complexity of configuring authentication in Blazor apps, offering a production-ready template that follows Microsoft's security recommendations. Its cookie-based approach is specifically tailored for Blazor WebAssembly hosted scenarios, providing a seamless alternative to token-based authentication setups.

Overview

A project template for a blazor hosted app using cookie based authentication with ef core identity.

Use Cases

Best For

  • Quickly starting a new Blazor WebAssembly project with authentication
  • Implementing cookie-based authentication in Blazor hosted apps
  • Integrating EF Core Identity with Blazor for user management
  • Learning Blazor authentication patterns with a working example
  • Prototyping full-stack Blazor applications with security features
  • Deploying Blazor apps to Azure with pre-configured authentication

Not Ideal For

  • Projects requiring JWT or token-based authentication for microservices or mobile backends
  • Teams using non-Microsoft databases or preferring lightweight ORMs like Dapper
  • Applications needing extensive, out-of-the-box UI theming without code modifications
  • Developers building Blazor Server or hybrid apps instead of WebAssembly hosted

Pros & Cons

Pros

Production-Ready Authentication

Provides a complete, secure cookie-based authentication system tailored for Blazor WebAssembly hosted apps, as shown in the live demo on Azure, saving weeks of setup time.

EF Core Identity Integration

Includes Entity Framework Core Identity out of the box for user management, roles, and claims, eliminating the need for manual configuration as mentioned in the README.

Quick Project Bootstrap

Can be installed via NuGet and used with the dotnet new command, allowing developers to generate a new project with authentication in minutes, per the usage instructions.

Microsoft Best Practices

Follows recommended security practices for Blazor applications, reducing the risk of misconfiguration and ensuring a reliable foundation.

Cons

Limited Authentication Flexibility

Strictly uses cookie-based authentication, which is not suitable for token-based scenarios like API integrations or cross-platform apps, as admitted in the project's focus.

Tight Coupling to Microsoft Stack

Heavily dependent on EF Core and Blazor WebAssembly, making it difficult to swap out components or adapt for other deployment models without significant rework.

UI Customization Overhead

Pre-built UI components for registration and login require manual modification for design changes, which can be more complex than using modular, style-agnostic libraries.

Frequently Asked Questions

Quick Stats

Stars474
Forks105
Contributors0
Open Issues5
Last commit3 years ago
CreatedSince 2019

Tags

#entity-framework-core#blazor-client#authentication#project-template#full-stack#dotnet-template#blazor-webassembly#identity#blazor

Built With

A
Azure DevOps
B
Blazor
E
Entity Framework Core
A
ASP.NET Core

Included in

Blazor9.3k
Auto-fetched 2 hours ago

Related Projects

BlazorBoilerplateBlazorBoilerplate

Blazor Boilerplate / Starter Template with MudBlazor

Stars1,920
Forks367
Last commit9 months ago
TheIdServerTheIdServer

OpenID/Connect, OAuth2, WS-Federation and SAML 2.0 server based on Duende IdentityServer and ITFoxtec Identity SAML 2.0 with its admin UI

Stars755
Forks90
Last commit2 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub