Category Archives: .Net Core 2.0

.NET Core Apps Integration Testing

Integration tests evaluate an application on a broader level than unit tests. Unit tests are used to test isolated software components, such as individual class methods. Integration tests confirm all layers are properly working when fully processing a request. Basically, Integration tests are used to test the app’s infrastructure including databases and file systems which… Read More »

ASP.Net Core external provider authentication using OpenID Connect + Cookie Auth middleware

OpenID Connect is an authentication protocol, built on top of OAuth 2.0, that can be used to securely sign users in to web applications. This authentication protocol allows you to perform SSO (single sign-on). It introduces the concept of an ID token, which allows the client to verify the identity of the user and obtain… Read More »

ASP.Net Core 2.1, 2.2 and 3.0 code samples

Learn how to use ASP.Net Core to build and run .NET apps on Linux, macOS, and Windows with these code samples, covering the entire range of ASP.Net Core functionality and demonstrating ASP.Net Core features like ASP.Net Core Razor Pages, ASP.Net Core SignalR, Blazor and latest ASP.Net Core 3.0 These ASP.Net code samples absolutely provides great… Read More »

ASP.Net Core Web API Bearer Token validation with a third party federated identity provider code sample

Federated Identity is a single sign-on (SSO) service that allows users to gain access to corporate resources at enterprise level with same set of credentials. Federated Identity system implements an authentication mechanism managed by external identity provider. This can minimize administrative overhead and improve the user experience. Federated Identity has the advantage that management of… Read More »

ASP.Net MVC Core Action filter sample for parameter validation

Filters have a special place in ASP.Net MVC Framework. Filters are custom classes/middlware that provide declarative and programmatic means to add pre-action and post-action behavior to controller action methods . Filters run in the context of MVC action processing pipeline. ASP.Net MVC supports 4 different types of filters. Authorization filter – deals with authorization logic.… Read More »

EF Core 2.0 improvements – LIKE Operator, Query filters

Entity Framework (EF) Core 2.0 comes with some cool nifty features. Improved LINQ translation to optimized SQL queries,  long pending feature request for LIKE LINQ operator is finally fulfilled. Other interesting feature is setting up Global Query filters which essentially allow you to set up global WHERE function at DbContext level and C# string interpolation… Read More »