Token Based Security, OAuth 2.0, OIDC and IdentityServer4

Introduction We all know the username/password mechanism of login to a web application. We also might have heard, used or implemented authentication/authorization systems, with or without frameworks. Token-based security is one of common mechanism to secure backend APIs. A common architecture for web applications typically consist of a web client app (e.g. an Angular or … Read more

AWS Application Deployment Basics – Docker Containers

Introduction In previous few posts in this series, we deployed and ran couple of applications on our EC2 based infrastructure. Here is how our architecture currently looks like from the previous post: Our applications are running in private subnet and NGNIX working as reverse proxy is allowing access over the internet. Today, we will just … Read more

AWS Application Deployment Basics – .NET Core Apps

Introduction In previous two posts in this series, we have setup a VPC with public and private subnets, launched EC2 instances. Setup PostgreSQL database and deploy a Nodejs application which we served via NGINX reverse proxy mechanism. We have the following architecture in place: If you are new to these topics, you can first check … Read more

Creating Self Signing Certificates for IdentityServer

Introduction Recently I was deploying IdentityServer4 to AWS and I needed self signing certificates for that purpose. I went online to get the settings for this configuration and there were a lot of articles describing in various different ways and sometimes a lot of extra information was there, which was rather confusing. Here I am … Read more

Dare mighty things – ASCII

Introduction NASA’s Perseverance Mars Rover landing was a historic moment. First time, we saw those moments of a rover landing on the Mars. That event was huge for many people watching this on their screens and it will inspire us for years. Every single image we saw after this landing contains a new surprise and … Read more

Fasten your Data Layer with Dapper (A .NET Micro ORM)

Introduction Dapper is .NET based light-weight, fast and simple to use Micro ORM created by brilliant Stack Exchange team. The word ORM means Object Relation Mapper, means it facilitates mapping b/w .NET objects and database and that is its focus. One great thing about Dapper that it works with any database. So, its not just … Read more

Internet Information Services (IIS) – Quick Start

Introduction IIS is a well known software to deliver websites on Microsoft windows platform. You can use it to delivery static contents, ASP .NET Web applications or ASP .NET Core web applications. It have many other features e.g. it can limit the exposed public surface area of the apps that it hosts. Also, it can … Read more

Local Logins using ASP .NET Core and JWT

Introduction Some line of business (LOB) applications or internal systems have predefine set of users and corresponding login information. In situations like those using a database mechanism to store user information is an overhead. Combine this overhead with Microsoft’s heavy duty implementation of Identity framework with persisting roots in entity framework, you have a recipe … Read more

Dynamic C# Introduction

Introduction C# is generally considered as a statically typed language. However it also offer very useful dynamic capabilities which comes handy in certain situations. In this post I will give you a very basic introduction of dynamic C#. Why Dynamic C# There are many reasons why you would like to use dynamic C# capabilities. Few … Read more

Deploying .NET Core, Angular and Postgres Web Application on Ubuntu (nginx)

Introduction In this post, I will be deploying and running a .NET Core, Angular and Postgres application on an Ubuntu VM running in azure cloud. This involves different tasks in different technologies to be done and I’ve previously written few posts about these different topics. In this post, I will combine all those learning so … Read more