Create a gRPC client and server in ASP.NET Core

Warning ASP.NET Core gRPC is not currently supported on Azure App Service or IIS. The HTTP/2 implementation of Http.Sys does not support HTTP response trailing headers which gRPC relies on. For more information, see this GitHub issue. Sources: Create a .NET Core gRPC client and server in ASP.NET Core | Microsoft Docs

gRPC for WCF Developers

Similarity to WCF Although the implementation and approach are different for gRPC, the experience of developing and consuming services with gRPC should be intuitive for WCF developers. The underlying goal is the same: make it possible to code as though the client and server are on the same platform, without needing to worry about networking.... » read more

ASP.NET core identity setup in blazor using Scaffolded

What is ASP.NET Core Identity ASP.NET Core Identity is a membership system. It allows us to create, read, update and delete user accounts. Supports account confirmation, authentication, authorisation, password recovery, two-factor authentication. It also supports external login providers like Microsoft, Facebook, Google etc. Scaffold Identity in ASP.NET Core projects ASP.NET Core provides ASP.NET Core Identity as... » read more

Overview of ASP.NET Core Security

https://docs.microsoft.com/en-us/aspnet/core/security/?view=aspnetcore-5.0 ASP.NET Core enables developers to easily configure and manage security for their apps. ASP.NET Core contains features for managing authentication, authorization, data protection, HTTPS enforcement, app secrets, XSRF/CSRF prevention, and CORS management. These security features allow you to build robust yet secure ASP.NET Core apps. ASP.NET Core security features ASP.NET Core provides many tools... » read more

.NET Identity with SPA

The ASP.NET Core 3.1 and later templates offer authentication in Single Page Apps (SPAs) using the support for API authorization. ASP.NET Core Identity for authenticating and storing users is combined with IdentityServer for implementing OpenID Connect. Deploy to production To deploy the app to production, the following resources need to be provisioned: A database to store... » read more

Configure .NET 5.0 Identity

Configure Identity services Services are added in ConfigureServices. The typical pattern is to call all the Add{Service} methods, and then call all the services.Configure{Service} methods. Test Identity The default web project templates allow anonymous access to the home pages. To test Identity, add [Authorize]: Sources: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-5.0&tabs=visual-studio

Blazor Memory Configuration

Memory Configuration Source The following example uses a MemoryConfigurationSource to supply additional configuration: Program.Main: Inject an IConfiguration instance into a component to access the configuration data: Example: Sources: https://docs.microsoft.com/en-us/aspnet/core/blazor/fundamentals/configuration?view=aspnetcore-5.0

Blazor Uri

How it works Get it from injection before to use it on .razor pages: Or like this on .cs if you prefer “code-behind” experience: Sample NavigationManager cheatsheet Helpers code: Sources: https://docs.microsoft.com/en-us/dotnet/api/system.uri?view=net-5.0 https://stackoverflow.com/questions/50102726/get-current-url-in-a-blazor-component