.NETADO.NETAgileAngularArchitectureASP.NETAuthenticationAzureAzure FunctionBIBig DataBlazorBusinessC#Cloud ServiceCosmosDBCSSDebuggingDesignEncryptionEntity FrameworkFYIGoogleHardwareInternetInterviewsJavascriptjQueryLeadershipLINQManagementMicrosoftMobileMS OfficeMS SQLNetworkingNoSQLOOPProject ManagementSoftware DevelopmentSource ControlSSISSSRSSyncfusionTeamTestingTSQLUncategorizedVendor SoftwareVisual StudioWebWeb ServicesWindowsWordPress
Setting up Identity Roles
We need to add the role specific services to our application. To do this, we need to update the code in the ConfigureServices method of the Startup class. The IdentityRole type is the default role type provided by ASP.NET Core Identity. But you can provide a different type if it doesn’t fit your requirements. Next, we’re going to seed our database... » read more
Connection String for Identity Database
appsettings.jon of <MyApp>.Server app.
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
The static web asset xxxxx has a conflicting web root path xxxxx.
I’ve updated my project from .NET 5 RC 1 to RC 2 and it doesn’t build anymore. This is by design. There are two assets that would end on the same “publish path” in the final project. The recommendation is that you choose which file you want to “win” and remove the other file. I... » 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